Scenario: [1.1:82]
542b330b-d3c6-4617-b97f-693e5cfd1872
ms: 751
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:39.304 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
6
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '542b330b-d3c6-4617-b97f-693e5cfd1872'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
712
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '542b330b-d3c6-4617-b97f-693e5cfd1872'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
8
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:40.044 [print] https://www.broinspireservices.nl/wfs/osamepl-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:50:40.046 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
2
04:50:40.048 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:50:40.049 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:50:40.050 [print] TNO Geologische Dienst Nederland
57
* print operateson
1
04:50:40.051 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=24de356e-ec4d-4a18-9903-6401d222b77c&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
2
04:50:40.054 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:40.056 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:50:40.057 [print] "true";"true"
76
* eval db.writeln('"542b330b-d3c6-4617-b97f-693e5cfd1872","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"542b330b-d3c6-4617-b97f-693e5cfd1872","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"542b330b-d3c6-4617-b97f-693e5cfd1872","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.2:82]
49ff0584-a173-4098-824c-119edf8447f7
ms: 617
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:39.309 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '49ff0584-a173-4098-824c-119edf8447f7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
576
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '49ff0584-a173-4098-824c-119edf8447f7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:39.898 [print] https:\/\/services.rce.geovoorziening.nl\/rce\/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:39.899 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:39.900 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:39.900 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:39.901 [print] Rijksdienst voor het Cultureel Erfgoed
57
* print operateson
0
04:50:39.901 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6f84efeb-fc1d-4565-a721-80735ea57dbd#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=4e2ef670-cddd-11dd-ad8b-0800200c9a66#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=88a3c1ae-902e-4efa-8663-ddd836101929#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:39.904 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:39.906 [print] "Nadere uitleg bij het al dan niet volledig voldoen aan de specificatie";"Nadere uitleg bij het al dan niet volledig voldoen aan de specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:39.908 [print] "true";"true"
76
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
11
78
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
8
Scenario: [1.3:82]
e29b19de-d191-47f2-b944-5056a7674cce
ms: 686
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:39.306 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
9
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e29b19de-d191-47f2-b944-5056a7674cce'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
644
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e29b19de-d191-47f2-b944-5056a7674cce'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
3
45
* print connectUrl
2
04:50:39.976 [print] https://inspire.caris.nl/gs5/am/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
4
04:50:39.980 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:50:39.982 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:50:39.983 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:50:39.984 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
04:50:39.985 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:50:39.987 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:39.989 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:50:39.991 [print] "true";"true"
76
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.4:82]
b2e66e8f-b1da-4de5-88d5-8aa8e6e00160
ms: 714
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:39.325 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b2e66e8f-b1da-4de5-88d5-8aa8e6e00160'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
690
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b2e66e8f-b1da-4de5-88d5-8aa8e6e00160'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:40.027 [print] https://haleconnect.com/ows/services/org.292.f4520ae7-9229-4132-8d42-37b4f962212f_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:50:40.028 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:50:40.030 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:50:40.030 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:50:40.032 [print] Rijkswaterstaat
57
* print operateson
1
04:50:40.033 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f4520ae7-9229-4132-8d42-37b4f962212a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:50:40.035 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:40.037 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:50:40.038 [print] "true";"true"
76
* eval db.writeln('"b2e66e8f-b1da-4de5-88d5-8aa8e6e00160","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b2e66e8f-b1da-4de5-88d5-8aa8e6e00160","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b2e66e8f-b1da-4de5-88d5-8aa8e6e00160","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.5:82]
9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4
ms: 606
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:39.937 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
7
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
575
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:40.531 [print] https:\/\/downloads.rijkswaterstaatdata.nl\/bodemhoogte_1mtr_insp
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:40.532 [print] ["landingpage","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:40.534 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:40.534 [print] ["landingpage","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:40.535 [print] Rijkswaterstaat
57
* print operateson
0
04:50:40.536 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:40.539 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:40.540 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:40.542 [print] "true";"true"
76
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.6:82]
e5ef707f-6458-4567-8d2c-d24fe88ab5e9
ms: 586
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:39.996 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e5ef707f-6458-4567-8d2c-d24fe88ab5e9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e5ef707f-6458-4567-8d2c-d24fe88ab5e9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:40.574 [print] https://acc.gdngeoservices.nl/geoserver/zout/ows?request=GetCapabilities&service=WMS&version=1.3.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:40.575 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:40.576 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:40.576 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:40.577 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:50:40.578 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=e3b0da1e-0664-4025-b3f5-a54d74a26450&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:40.579 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:40.581 [print] "Technical Guidance for the implementation of INSPIRE View Services";"De service voldoet niet aan de richtlijnen van INSPIRE vanwege technische beperkingen";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:40.582 [print] "false";"false"
76
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.7:82]
cd370f58-0e54-48d6-b83b-ccd332bfb7c7
ms: 608
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:40.043 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
4
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
5
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cd370f58-0e54-48d6-b83b-ccd332bfb7c7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
578
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cd370f58-0e54-48d6-b83b-ccd332bfb7c7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:40.639 [print] https://data.rivm.nl/geo/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:40.639 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:40.641 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:40.641 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
2
04:50:40.643 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:50:40.644 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ad6caa40-89ab-47e3-85ab-3f8e32024a71#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:40.646 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:40.647 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:40.648 [print] "false";"false"
76
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.8:82]
68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2
ms: 631
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:40.062 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
607
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:40.677 [print] https:\/\/geo.rijkswaterstaat.nl\/services\/ogc\/hws\/wm\/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:40.678 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:40.679 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:40.680 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:40.681 [print] Rijkswaterstaat
57
* print operateson
1
04:50:40.682 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:40.684 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"Technical Guidance for the implementation of INSPIRE Download Services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:40.685 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:40.686 [print] "true";"true"
76
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
2
78
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
4
Scenario: [1.9:82]
2d1860f2-f8ba-457e-bd64-93cdabd69aee
ms: 579
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:40.551 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2d1860f2-f8ba-457e-bd64-93cdabd69aee'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
551
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2d1860f2-f8ba-457e-bd64-93cdabd69aee'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:41.111 [print] https:\/\/inspire.caris.nl\/geoserver\/cz\/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
3
50
* print protocol1
0
04:50:41.114 [print] ["OGC:WMS","tiff"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:41.115 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:41.115 [print] ["OGC:WMS","tiff"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:41.116 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
4
04:50:41.120 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=424c1d5c-063b-4372-99f5-c85786b4a9d0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:41.124 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:41.126 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:41.128 [print] "true";"true"
76
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
2
78
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.10:82]
a7e4bc31-60c1-4b78-bef1-eed768ceafa0
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:40.586 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a7e4bc31-60c1-4b78-bef1-eed768ceafa0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a7e4bc31-60c1-4b78-bef1-eed768ceafa0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:41.165 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:50:41.166 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:41.167 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:41.167 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:41.169 [print] KNMI
57
* print operateson
0
04:50:41.169 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:41.171 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:41.172 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:41.174 [print] true
76
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.11:82]
777f41ee-8269-4bbc-b0e4-f889c62be099
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:40.655 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '777f41ee-8269-4bbc-b0e4-f889c62be099'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '777f41ee-8269-4bbc-b0e4-f889c62be099'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:41.212 [print] https://data.rivm.nl/geo/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:41.213 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:41.214 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:41.215 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:41.216 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
1
04:50:41.216 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:41.218 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:41.220 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:41.221 [print] "false";"false"
76
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.12:82]
f0eb64f9-8888-42e1-9550-bf91c32da4bc
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:40.697 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f0eb64f9-8888-42e1-9550-bf91c32da4bc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f0eb64f9-8888-42e1-9550-bf91c32da4bc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:41.258 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:41.259 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:50:41.260 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:41.261 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:41.262 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:50:41.262 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:41.264 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:41.266 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:50:41.267 [print] "false";"false"
76
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
3
78
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.13:82]
66b293b0-e9d4-4d6f-9f37-30d10af1d7db
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:41.136 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '66b293b0-e9d4-4d6f-9f37-30d10af1d7db'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '66b293b0-e9d4-4d6f-9f37-30d10af1d7db'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:41.707 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2021/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:50:41.708 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:50:41.709 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:41.710 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:50:41.712 [print] Beheer PDOK
57
* print operateson
1
04:50:41.713 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:50:41.715 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:41.716 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:50:41.718 [print] "true";"true";"true"
76
* eval db.writeln('"66b293b0-e9d4-4d6f-9f37-30d10af1d7db","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"66b293b0-e9d4-4d6f-9f37-30d10af1d7db","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"66b293b0-e9d4-4d6f-9f37-30d10af1d7db","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.14:82]
822d9417-a69f-4665-bc42-8c6d84e5dedb
ms: 585
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:41.178 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '822d9417-a69f-4665-bc42-8c6d84e5dedb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '822d9417-a69f-4665-bc42-8c6d84e5dedb'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:41.749 [print] https://haleconnect.com/ows/services/org.292.c3955762-73a3-4c16-a15c-f3869487a1e3_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:50:41.750 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:50:41.751 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:41.752 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:50:41.753 [print] Rijkswaterstaat
57
* print operateson
1
04:50:41.754 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c3955762-73a3-4c16-a15c-f3869487a1ea#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:50:41.756 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:41.758 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:50:41.759 [print] true
76
* eval db.writeln('"822d9417-a69f-4665-bc42-8c6d84e5dedb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"822d9417-a69f-4665-bc42-8c6d84e5dedb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"822d9417-a69f-4665-bc42-8c6d84e5dedb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
4
Scenario: [1.15:82]
ca71572f-a498-4ca6-aa60-d4c4c4d59e2e
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:41.225 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ca71572f-a498-4ca6-aa60-d4c4c4d59e2e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
542
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ca71572f-a498-4ca6-aa60-d4c4c4d59e2e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
3
45
* print connectUrl
2
04:50:41.781 [print] https://inspire.caris.nl/geoserver/gnwms/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:50:41.782 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:50:41.783 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:41.784 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:50:41.786 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
04:50:41.787 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1c3450ea-e161-4f50-ad0e-97a36cdd1308#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
1
64
* print corConformanceHref
0
04:50:41.789 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:41.790 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:41.792 [print] "true";"true"
76
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.16:82]
91041d33-54f8-40f1-8965-a867ba00cab8
ms: 595
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:41.273 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '91041d33-54f8-40f1-8965-a867ba00cab8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
576
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '91041d33-54f8-40f1-8965-a867ba00cab8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
1
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:41.860 [print] https://inspire.caris.nl/geoserver/gn/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:41.861 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:41.863 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:41.863 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:41.864 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:41.864 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1c3450ea-e161-4f50-ad0e-97a36cdd1308#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:41.866 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:41.867 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:41.868 [print] "true";"true"
76
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.17:82]
87a382da-c6dc-403c-a006-2379eb6daaa6
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:41.723 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '87a382da-c6dc-403c-a006-2379eb6daaa6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
542
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '87a382da-c6dc-403c-a006-2379eb6daaa6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:42.274 [print] https://inspire.caris.nl/gs5/pssa_nl/ows?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:42.275 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:42.276 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:42.276 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:42.276 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:42.277 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=f1d27179-36eb-4376-8048-f51d2eb23a09&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:42.278 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:42.279 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:42.280 [print] "true";"true"
76
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.18:82]
9eefe17b-943f-449f-a359-c790742fe67b
ms: 584
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:41.767 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
9
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9eefe17b-943f-449f-a359-c790742fe67b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9eefe17b-943f-449f-a359-c790742fe67b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:42.342 [print] https://haleconnect.com/ows/services/org.292.c4dce550-ea49-11e3-ac10-0800200c9a68_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:42.343 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:42.344 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:42.344 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:42.346 [print] Rijkswaterstaat
57
* print operateson
0
04:50:42.346 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=891ddc2d-8949-4a45-be96-c65b87c41f13#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:42.348 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:42.349 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:42.351 [print] "true";"true"
76
* eval db.writeln('"9eefe17b-943f-449f-a359-c790742fe67b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"9eefe17b-943f-449f-a359-c790742fe67b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"9eefe17b-943f-449f-a359-c790742fe67b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.19:82]
bd14098b-44e6-47e5-959d-f40dda65da5a
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:41.796 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bd14098b-44e6-47e5-959d-f40dda65da5a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bd14098b-44e6-47e5-959d-f40dda65da5a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:42.366 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:42.367 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:42.368 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:42.368 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:42.369 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:50:42.369 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:42.371 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:42.372 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:42.374 [print] "false";"false"
76
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.20:82]
9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1
ms: 602
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:41.872 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
583
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:42.464 [print] https://inspire.caris.nl/geoserver3/rws/wcs?service=WCS&version=2.0.1&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:42.465 [print] OGC:WCS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:42.467 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:42.467 [print] OGC:WCS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:42.468 [print] Rijkswaterstaat
57
* print operateson
1
04:50:42.469 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:42.470 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/id\/document\/tg\/download-wcs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:42.471 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:42.473 [print] "true";"true"
76
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.21:82]
1184b609-bf9e-4ce7-b121-acfc3b5df424
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:42.283 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1184b609-bf9e-4ce7-b121-acfc3b5df424'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1184b609-bf9e-4ce7-b121-acfc3b5df424'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:42.841 [print] https://haleconnect.com/ows/services/org.292.5c3d9005-8887-44d9-a72e-96cd0a7fffe4_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:42.842 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:42.843 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:42.843 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:42.844 [print] Rijkswaterstaat
57
* print operateson
0
04:50:42.844 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6b574ba3-3b1c-4f29-a631-0f160713d96d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:42.845 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:42.846 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:42.847 [print] true
76
* eval db.writeln('"1184b609-bf9e-4ce7-b121-acfc3b5df424","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"1184b609-bf9e-4ce7-b121-acfc3b5df424","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"1184b609-bf9e-4ce7-b121-acfc3b5df424","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.22:82]
7f79fc69-d0c7-4913-a05a-527c90453297
ms: 675
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:42.354 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7f79fc69-d0c7-4913-a05a-527c90453297'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
650
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7f79fc69-d0c7-4913-a05a-527c90453297'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:43.012 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:43.013 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:43.014 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:43.014 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
10
56
* print organisationpath
0
04:50:43.024 [print] KNMI
57
* print operateson
0
04:50:43.024 [print] https://haleconnect.com/services/bsp/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:50:43.027 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:43.028 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:43.029 [print] true
76
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.23:82]
a12ae6ca-b755-4707-884f-95c0d66f431a
ms: 660
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:42.377 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a12ae6ca-b755-4707-884f-95c0d66f431a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
640
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a12ae6ca-b755-4707-884f-95c0d66f431a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
0
04:50:43.028 [print] https://inspire.caris.nl/gs5/MarineRegion/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:50:43.029 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:43.030 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:43.031 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:43.032 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:43.032 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f44dac86-2228-412f-8355-e56446ca9933#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:43.034 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:43.036 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:43.037 [print] "true";"true"
76
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.24:82]
63aecda1-2216-4100-96dc-6bede78f9813
ms: 645
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:42.477 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '63aecda1-2216-4100-96dc-6bede78f9813'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
623
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '63aecda1-2216-4100-96dc-6bede78f9813'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:43.110 [print] https://haleconnect.com/ows/services/org.292.7c48322f-f9cf-4a08-aa63-c4de080c13a1_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
3
50
* print protocol1
1
04:50:43.114 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:43.115 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:43.115 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:43.116 [print] Rijkswaterstaat
57
* print operateson
0
04:50:43.117 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7c48322f-f9cf-4a08-aa63-c4de080c13aab#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:50:43.119 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:43.121 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:43.122 [print] "true";"true"
76
* eval db.writeln('"63aecda1-2216-4100-96dc-6bede78f9813","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"63aecda1-2216-4100-96dc-6bede78f9813","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"63aecda1-2216-4100-96dc-6bede78f9813","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.25:82]
a6098c24-4caf-4528-954c-672b9ec6cf78
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:42.850 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a6098c24-4caf-4528-954c-672b9ec6cf78'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a6098c24-4caf-4528-954c-672b9ec6cf78'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:43.412 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:43.412 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:43.413 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:43.413 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:43.414 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:50:43.414 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:43.416 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:43.417 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:43.418 [print] "false";"false"
76
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.26:82]
de93b602-8cbf-4cf0-9ce6-1b201e230ef1
ms: 586
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:43.033 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
2
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'de93b602-8cbf-4cf0-9ce6-1b201e230ef1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
571
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'de93b602-8cbf-4cf0-9ce6-1b201e230ef1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:43.613 [print] https://haleconnect.com/ows/services/org.292.6cef2128-a227-4aa7-bc74-0e3797644d51_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:43.614 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:43.614 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:43.614 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:43.615 [print] Rijkswaterstaat
57
* print operateson
0
04:50:43.615 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cfc800cb-e903-4364-9415-ddd3e0ecf49f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:43.617 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:43.617 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:43.618 [print] true
76
* eval db.writeln('"de93b602-8cbf-4cf0-9ce6-1b201e230ef1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"de93b602-8cbf-4cf0-9ce6-1b201e230ef1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"de93b602-8cbf-4cf0-9ce6-1b201e230ef1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.27:82]
b7880739-a701-4cc0-bb32-2bba61fa8924
ms: 622
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:43.041 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b7880739-a701-4cc0-bb32-2bba61fa8924'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
606
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b7880739-a701-4cc0-bb32-2bba61fa8924'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:43.655 [print] https://acc.gdngeoservices.nl/geoserver/aardwarmtepotentiekaart/ows?request=GetCapabilities&service=WMS&version=1.3.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:43.656 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:43.657 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:43.657 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:43.658 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:50:43.659 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=11a292bd-9022-4a9f-b1bf-02f5c89ad74a&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:43.660 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:43.662 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:43.663 [print] "true";"false"
76
* eval db.writeln('"b7880739-a701-4cc0-bb32-2bba61fa8924","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b7880739-a701-4cc0-bb32-2bba61fa8924","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b7880739-a701-4cc0-bb32-2bba61fa8924","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.28:82]
ea4cb6a2-f637-413a-91cc-d58473c2f138
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:43.125 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ea4cb6a2-f637-413a-91cc-d58473c2f138'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ea4cb6a2-f637-413a-91cc-d58473c2f138'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:43.698 [print] http://services.inspire-provincies.nl/EnvironmentalMonitoringFacilities/services/view_EF?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:43.699 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:43.700 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:43.700 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:43.701 [print] Interprovinciaal Overleg
57
* print operateson
0
04:50:43.701 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=c829abeb-bfac-4224-8332-e7a9a89e692e&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=fe45c540-e37d-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:43.703 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:43.705 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services 3.1";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:43.706 [print] "false";"true";"true"
76
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.29:82]
0d2ca03b-fb7b-466a-bb93-e2bfb596e394
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:43.421 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
3
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0d2ca03b-fb7b-466a-bb93-e2bfb596e394'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0d2ca03b-fb7b-466a-bb93-e2bfb596e394'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:43.989 [print] https://inspire.caris.nl/gs5/pssa_nl/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:43.990 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:50:43.991 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:43.992 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:43.992 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:43.993 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=f1d27179-36eb-4376-8048-f51d2eb23a09&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:43.994 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:43.995 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:43.996 [print] "true";"true"
76
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.30:82]
6583e403-d2a4-4d2b-8499-b88a62adbda7
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:43.624 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6583e403-d2a4-4d2b-8499-b88a62adbda7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6583e403-d2a4-4d2b-8499-b88a62adbda7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:44.186 [print] https://haleconnect.com/ows/services/org.292.5c3d9005-8887-44d9-a72e-96cd0a7fffe4_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:44.186 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:44.187 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:44.187 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:44.188 [print] Rijkswaterstaat
57
* print operateson
0
04:50:44.188 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6b574ba3-3b1c-4f29-a631-0f160713d96d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:44.190 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:44.190 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:44.192 [print] "true";"true"
76
* eval db.writeln('"6583e403-d2a4-4d2b-8499-b88a62adbda7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6583e403-d2a4-4d2b-8499-b88a62adbda7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"6583e403-d2a4-4d2b-8499-b88a62adbda7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.31:82]
7dc30aed-0940-4e69-b34c-9f24b34078eb
ms: 584
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:43.666 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7dc30aed-0940-4e69-b34c-9f24b34078eb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7dc30aed-0940-4e69-b34c-9f24b34078eb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
4
45
* print connectUrl
1
04:50:44.231 [print] https://data.rivm.nl/geo/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:44.232 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:44.233 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:44.233 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:44.235 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
1
04:50:44.235 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:44.237 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:44.239 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
6
04:50:44.246 [print] "true";"true";"true"
76
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
5
Scenario: [1.32:82]
1e2cb7d4-934a-437a-809e-fda67b4a8824
ms: 599
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:43.711 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1e2cb7d4-934a-437a-809e-fda67b4a8824'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
574
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1e2cb7d4-934a-437a-809e-fda67b4a8824'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
5
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
1
04:50:44.302 [print] https://inspire.caris.nl/geoserver/eez/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:44.303 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:44.304 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:44.305 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:44.306 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:44.306 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3296af93-cc8c-4a24-9356-1f68a57db712#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:50:44.308 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
1
68
* print corConformanceTitles
1
04:50:44.310 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:44.312 [print] "true";"true"
76
* eval db.writeln('"1e2cb7d4-934a-437a-809e-fda67b4a8824","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1e2cb7d4-934a-437a-809e-fda67b4a8824","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1e2cb7d4-934a-437a-809e-fda67b4a8824","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.33:82]
b1910566-a591-4cce-838d-5ec9a836a786
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:43.999 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b1910566-a591-4cce-838d-5ec9a836a786'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
551
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b1910566-a591-4cce-838d-5ec9a836a786'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:44.561 [print] https://haleconnect.com/ows/services/org.292.f4520ae7-9229-4132-8d42-37b4f962212f_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:44.562 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:44.563 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:44.564 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:44.565 [print] Rijkswaterstaat
57
* print operateson
0
04:50:44.566 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f4520ae7-9229-4132-8d42-37b4f962212a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
17
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:44.584 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:44.585 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:44.586 [print] true
76
* eval db.writeln('"b1910566-a591-4cce-838d-5ec9a836a786","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b1910566-a591-4cce-838d-5ec9a836a786","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b1910566-a591-4cce-838d-5ec9a836a786","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.34:82]
3d8c9463-a3da-401d-8251-8c6664865e0c
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:44.196 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
1
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3d8c9463-a3da-401d-8251-8c6664865e0c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
551
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3d8c9463-a3da-401d-8251-8c6664865e0c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:44.759 [print] https://haleconnect.com/ows/services/org.292.504afbe6-0069-411b-b69b-2aae3728f735_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:44.760 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:44.761 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:44.761 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:44.762 [print] Rijkswaterstaat
57
* print operateson
0
04:50:44.762 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=504afbe6-0069-411b-b69b-2aae3728f73a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:44.764 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:44.765 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:44.766 [print] true
76
* eval db.writeln('"3d8c9463-a3da-401d-8251-8c6664865e0c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3d8c9463-a3da-401d-8251-8c6664865e0c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3d8c9463-a3da-401d-8251-8c6664865e0c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.35:82]
bef46033-ce69-4ce4-b853-4ab65f6a424d
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:44.254 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
2
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bef46033-ce69-4ce4-b853-4ab65f6a424d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bef46033-ce69-4ce4-b853-4ab65f6a424d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:44.816 [print] https://haleconnect.com/ows/services/org.292.917b5ba0-4fdd-4654-8c18-b3ccdadaa550_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:44.817 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:44.818 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:44.818 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:44.819 [print] Rijkswaterstaat
57
* print operateson
0
04:50:44.819 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=917b5ba0-4fdd-4654-8c18-b3ccdadaa55a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:44.821 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:44.822 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:44.823 [print] "true";"true"
76
* eval db.writeln('"bef46033-ce69-4ce4-b853-4ab65f6a424d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bef46033-ce69-4ce4-b853-4ab65f6a424d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bef46033-ce69-4ce4-b853-4ab65f6a424d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.36:82]
c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:44.316 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:44.887 [print] https://inspire.caris.nl/gs5/ProspectingAndMiningPermitArea/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:44.888 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:44.889 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:44.889 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:44.890 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:44.890 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c2225e5d-b46f-4e38-8445-ab10fd40c0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:44.892 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:44.893 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:44.894 [print] "true";"true"
76
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.37:82]
f39d198a-1e69-43cc-b359-cc60a8c22d28
ms: 583
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:44.593 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f39d198a-1e69-43cc-b359-cc60a8c22d28'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
566
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f39d198a-1e69-43cc-b359-cc60a8c22d28'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:45.169 [print] https://inspire.rivm.nl/sos/eaq/service?service=AQD&version=1.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:45.170 [print] OGC:SOS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:45.171 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:45.171 [print] OGC:SOS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:45.172 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:50:45.172 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=733559a5-201d-40e5-ad43-d1c7bae84d9f#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d3c9efd6-fca7-49d6-92bb-5f507abece90#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=af135cd8-d429-4fc7-b9e3-09e15217520d#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=b3ec8793-7747-4da0-b6c3-aa384446a586#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5800f3b0-2ea2-4231-8165-216a7b26867f#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d8f370e8-123c-4ab3-9410-04f728327ac6#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=500d396f-5ec6-4e4b-a151-5fb3cddd8082#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:45.174 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:45.175 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Voldoet aan de download specificaties.";"OGC Sensor Observation Service Interface Standard";"Conform OGC SOS specificaties.";"VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Voldoet aan de SDS interoperabilities specificaties."
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:45.176 [print] "true";"true";"true"
76
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.38:82]
a02c6566-e0ad-4fc1-b217-67cc1099dea2
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:44.771 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a02c6566-e0ad-4fc1-b217-67cc1099dea2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a02c6566-e0ad-4fc1-b217-67cc1099dea2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:45.328 [print] https://data.rivm.nl/geo/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:45.329 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:45.330 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:45.331 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:45.332 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:50:45.332 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:45.334 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:45.335 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:45.336 [print] "false";"false"
76
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.39:82]
f2d2cd9d-7410-485a-95e0-c1b885243eaf
ms: 602
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:44.827 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f2d2cd9d-7410-485a-95e0-c1b885243eaf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
564
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2d2cd9d-7410-485a-95e0-c1b885243eaf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
1
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
9
45
* print connectUrl
0
04:50:45.408 [print] https://inspire.caris.nl/geoserver/eez/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
8
04:50:45.416 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:45.417 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:45.417 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:45.418 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:45.419 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3296af93-cc8c-4a24-9356-1f68a57db712#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:45.420 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:45.421 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:45.422 [print] "true";"true"
76
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
4
77
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
2
78
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.40:82]
7625d5e3-f358-461d-937e-91dd7c18ec2f
ms: 609
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:44.898 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7625d5e3-f358-461d-937e-91dd7c18ec2f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
591
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7625d5e3-f358-461d-937e-91dd7c18ec2f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:45.498 [print] https://haleconnect.com/ows/services/org.292.1bb6e186-633d-4a05-9fdf-b12a2f21fe6f_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:45.499 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:45.500 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:45.500 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:45.501 [print] Rijkswaterstaat
57
* print operateson
0
04:50:45.502 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1bb6e186-633d-4a05-9fdf-b12a2f21fe6m#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:45.503 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:45.505 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:45.506 [print] "true";"true"
76
* eval db.writeln('"7625d5e3-f358-461d-937e-91dd7c18ec2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7625d5e3-f358-461d-937e-91dd7c18ec2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7625d5e3-f358-461d-937e-91dd7c18ec2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.41:82]
f2443309-c655-4e64-b914-149050fd479c
ms: 595
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:45.180 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f2443309-c655-4e64-b914-149050fd479c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
581
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2443309-c655-4e64-b914-149050fd479c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:45.769 [print] https://haleconnect.com/ows/services/org.292.504afbe6-0069-411b-b69b-2aae3728f735_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:45.770 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:45.770 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:45.771 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:45.771 [print] Rijkswaterstaat
57
* print operateson
0
04:50:45.771 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=504afbe6-0069-411b-b69b-2aae3728f73a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:45.773 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:45.774 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:45.774 [print] "true";"true"
76
* eval db.writeln('"f2443309-c655-4e64-b914-149050fd479c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f2443309-c655-4e64-b914-149050fd479c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f2443309-c655-4e64-b914-149050fd479c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.42:82]
2dd6c9df-bb47-40eb-af39-2d17f09b9bb9
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:45.341 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2dd6c9df-bb47-40eb-af39-2d17f09b9bb9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
574
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2dd6c9df-bb47-40eb-af39-2d17f09b9bb9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:45.922 [print] https://acc.gdngeoservices.nl/geoserver/geologicalmap/ows?request=GetCapabilities&service=WMS&version=1.3.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:45.923 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:45.923 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:45.924 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:45.924 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:50:45.924 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:45.925 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:45.926 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:45.927 [print] "true";"false"
76
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.43:82]
f95af5dd-e469-43b5-8d67-e4511b29b66b
ms: 580
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:45.432 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f95af5dd-e469-43b5-8d67-e4511b29b66b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
560
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f95af5dd-e469-43b5-8d67-e4511b29b66b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
4
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:46.004 [print] https://service.pdok.nl/rvo/schelpdierpercelen/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:46.005 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:46.005 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:46.006 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:46.006 [print] Beheer PDOK
57
* print operateson
0
04:50:46.007 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b4e95a-12d7-4c74-933c-cb267cfe0bcf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:46.008 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:46.010 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de interoperable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:46.011 [print] "true";"true";"true"
76
* eval db.writeln('"f95af5dd-e469-43b5-8d67-e4511b29b66b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"f95af5dd-e469-43b5-8d67-e4511b29b66b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f95af5dd-e469-43b5-8d67-e4511b29b66b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.44:82]
17ad94f6-4961-448b-a6f5-5368b7870409
ms: 632
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:45.510 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '17ad94f6-4961-448b-a6f5-5368b7870409'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
612
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '17ad94f6-4961-448b-a6f5-5368b7870409'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
3
04:50:46.133 [print] https://inspire.caris.nl/geoserver3/bathy_wcs/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:50:46.134 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:46.135 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:46.135 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:46.136 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:46.137 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/xml.metadata.get?uuid=a322184d-6285-4856-bb78-f450b30ffc0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:46.139 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:46.140 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:46.141 [print] "true";"true"
76
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.45:82]
55cf16e8-1c04-462c-b78a-e0d28823dd2e
ms: 637
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:45.778 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '55cf16e8-1c04-462c-b78a-e0d28823dd2e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
622
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '55cf16e8-1c04-462c-b78a-e0d28823dd2e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:46.409 [print] https://haleconnect.com/ows/services/org.874.c4108a11-bdbb-4461-8902-423531561a7e_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:46.410 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:46.411 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:46.411 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:46.412 [print] KNMI
57
* print operateson
0
04:50:46.412 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:46.413 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:46.414 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:46.415 [print] true
76
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.46:82]
6d2fce74-fb25-4322-ab25-1be8a3bc7fd0
ms: 605
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:45.931 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6d2fce74-fb25-4322-ab25-1be8a3bc7fd0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
591
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6d2fce74-fb25-4322-ab25-1be8a3bc7fd0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:46.530 [print] https://inspire.caris.nl/geoserver3/bathy_wcs/wcs?request=GetCapabilities&service=WCS&version=2.0.1
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:46.531 [print] OGC:WCS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:46.532 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:46.532 [print] OGC:WCS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:46.533 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:46.533 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a322184d-6285-4856-bb78-f450b30ffc0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:46.534 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:46.535 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services 2.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:46.536 [print] "true";"true"
76
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.47:82]
0bb27a13-76f1-4374-8d44-76e937198e8d
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:46.015 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0bb27a13-76f1-4374-8d44-76e937198e8d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0bb27a13-76f1-4374-8d44-76e937198e8d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:50:46.584 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-Maritieme-grenzen-Noordzee.gml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:46.584 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:46.585 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:46.585 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:46.586 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:46.587 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=a5241416-8401-4623-be61-57ef50447a41&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:46.589 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:46.590 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Dataset is geharmoniseerd";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:46.591 [print] "true";"true"
76
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.48:82]
c7dad4b9-42a8-452f-a33b-d4938ed22142
ms: 616
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:46.145 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c7dad4b9-42a8-452f-a33b-d4938ed22142'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
601
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c7dad4b9-42a8-452f-a33b-d4938ed22142'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:46.754 [print] https://inspire.caris.nl/gs5/MarineRegion/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:46.754 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:46.756 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:46.756 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:46.757 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:46.757 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f44dac86-2228-412f-8355-e56446ca9933#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:46.758 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:46.759 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:46.760 [print] "true";"true"
76
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.49:82]
82fa284e-8218-40e4-a593-c2f8a832c3d5
ms: 565
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:46.419 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '82fa284e-8218-40e4-a593-c2f8a832c3d5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '82fa284e-8218-40e4-a593-c2f8a832c3d5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:46.978 [print] https://acc.gdngeoservices.nl/geoserver/oliegas/ows?request=GetCapabilities&service=WMS&version=1.3.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:46.978 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:46.979 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:46.979 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:46.980 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:50:46.980 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=b61a773c-ecad-4e60-93e9-0a4caac0b52f&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:46.981 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:46.982 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:46.983 [print] "true";"false"
76
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.50:82]
2c2cc118-dee5-448f-9658-e2649bcb7d7f
ms: 592
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:46.539 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2c2cc118-dee5-448f-9658-e2649bcb7d7f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
576
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2c2cc118-dee5-448f-9658-e2649bcb7d7f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:47.123 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.794fa9da-8bf0-4053-83d8-1174f2317dcb?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:47.124 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:47.125 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:47.125 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:47.126 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:47.126 [print] https://haleconnect.com/services/bsp/org.874.794fa9da-8bf0-4053-83d8-1174f2317dcb/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:47.128 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:47.129 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:47.130 [print] true
76
* eval db.writeln('"2c2cc118-dee5-448f-9658-e2649bcb7d7f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2c2cc118-dee5-448f-9658-e2649bcb7d7f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2c2cc118-dee5-448f-9658-e2649bcb7d7f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.51:82]
ff2a91df-931c-46fe-8f07-a1ec64e1335e
ms: 580
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:46.595 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ff2a91df-931c-46fe-8f07-a1ec64e1335e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
560
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ff2a91df-931c-46fe-8f07-a1ec64e1335e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:47.165 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.794fa9da-8bf0-4053-83d8-1174f2317dcb?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:47.166 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:47.167 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:47.167 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:47.168 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:47.169 [print] https://haleconnect.com/services/bsp/org.874.794fa9da-8bf0-4053-83d8-1174f2317dcb/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:47.170 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:47.172 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:47.173 [print] true
76
* eval db.writeln('"ff2a91df-931c-46fe-8f07-a1ec64e1335e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ff2a91df-931c-46fe-8f07-a1ec64e1335e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ff2a91df-931c-46fe-8f07-a1ec64e1335e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
3
Scenario: [1.52:82]
13c6144d-231b-4a52-91d5-edde65076aff
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:46.764 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '13c6144d-231b-4a52-91d5-edde65076aff'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '13c6144d-231b-4a52-91d5-edde65076aff'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:47.330 [print] https://haleconnect.com/ows/services/org.292.2350b86b-3efd-47e4-883e-519bfa8d0aba_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:47.330 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:47.331 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:47.331 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:47.332 [print] Rijkswaterstaat
57
* print operateson
0
04:50:47.333 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2350b86b-3efd-47e4-883e-519bfa8d0abd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:47.334 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:47.335 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:47.336 [print] true
76
* eval db.writeln('"13c6144d-231b-4a52-91d5-edde65076aff","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"13c6144d-231b-4a52-91d5-edde65076aff","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"13c6144d-231b-4a52-91d5-edde65076aff","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.53:82]
7b4a0b26-5885-45cd-a99d-27887cff68e5
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:46.986 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7b4a0b26-5885-45cd-a99d-27887cff68e5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7b4a0b26-5885-45cd-a99d-27887cff68e5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:47.556 [print] https://www.broinspireservices.nl/wms/ossosgm-a-v1.0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:47.557 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:47.558 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:47.559 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:47.560 [print] TNO Geologische Dienst Nederland
57
* print operateson
1
04:50:47.560 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=a7fb2234-f7b4-4a03-b282-f10947f42fb1&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:47.562 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:47.563 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:47.564 [print] "true";"false"
76
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.54:82]
f61eec5c-cb91-40b6-ad35-9bca967006cc
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:47.134 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f61eec5c-cb91-40b6-ad35-9bca967006cc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f61eec5c-cb91-40b6-ad35-9bca967006cc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:47.697 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:47.698 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:47.699 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:47.699 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:47.700 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:50:47.701 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=588a4cb1-b442-4ac1-87e4-40401e353166#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:47.703 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:47.704 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:47.705 [print] "false";"false"
76
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.55:82]
923a666c-ee4f-496c-8c85-94d5f81e1f30
ms: 607
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:47.178 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '923a666c-ee4f-496c-8c85-94d5f81e1f30'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '923a666c-ee4f-496c-8c85-94d5f81e1f30'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
17
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:47.776 [print] https://inspire.caris.nl/gs5/am/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:50:47.777 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:50:47.778 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:47.779 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:50:47.780 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
04:50:47.781 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:50:47.783 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:47.784 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:47.786 [print] "true";"true"
76
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.56:82]
c6308500-3439-4840-88cb-7532cabbfcb4
ms: 567
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:47.340 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c6308500-3439-4840-88cb-7532cabbfcb4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c6308500-3439-4840-88cb-7532cabbfcb4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:47.898 [print] https://haleconnect.com/ows/services/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:47.899 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:47.900 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:47.900 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:47.901 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:47.902 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:47.904 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:47.905 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:47.907 [print] true
76
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.57:82]
eec0708d-bab6-41c2-aa5b-9c435a1a177e
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:47.568 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eec0708d-bab6-41c2-aa5b-9c435a1a177e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
560
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eec0708d-bab6-41c2-aa5b-9c435a1a177e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:50:48.138 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:48.139 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:48.140 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:48.140 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:48.141 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:48.141 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:48.143 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:48.144 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:48.145 [print] true
76
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
5
77
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.58:82]
95664230-19bc-4f33-b2cf-10aedbe75c11
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:47.710 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '95664230-19bc-4f33-b2cf-10aedbe75c11'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
546
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '95664230-19bc-4f33-b2cf-10aedbe75c11'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:48.265 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.0f6d394b-5d46-4e53-a985-8fd3bb721d8e?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:48.266 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:48.266 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:48.267 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:48.268 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:48.268 [print] https://haleconnect.com/services/bsp/org.874.0f6d394b-5d46-4e53-a985-8fd3bb721d8e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:48.270 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:48.271 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:48.272 [print] true
76
* eval db.writeln('"95664230-19bc-4f33-b2cf-10aedbe75c11","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"95664230-19bc-4f33-b2cf-10aedbe75c11","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"95664230-19bc-4f33-b2cf-10aedbe75c11","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.59:82]
ac873153-d885-45e4-b2ab-ad0600d203d3
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:47.790 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ac873153-d885-45e4-b2ab-ad0600d203d3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
532
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ac873153-d885-45e4-b2ab-ad0600d203d3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:48.332 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.b005ca06-7d3d-4805-bcac-0fb65196db22?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:48.333 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:48.334 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:48.334 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:48.335 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:48.335 [print] https://haleconnect.com/services/bsp/org.874.b005ca06-7d3d-4805-bcac-0fb65196db22/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:48.337 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:48.338 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:48.339 [print] true
76
* eval db.writeln('"ac873153-d885-45e4-b2ab-ad0600d203d3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"ac873153-d885-45e4-b2ab-ad0600d203d3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ac873153-d885-45e4-b2ab-ad0600d203d3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.60:82]
7d33772b-8bb4-4c9a-b5b4-07ada37694cd
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:47.913 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7d33772b-8bb4-4c9a-b5b4-07ada37694cd'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7d33772b-8bb4-4c9a-b5b4-07ada37694cd'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:48.477 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.1fe64439-81bd-4adb-8a64-957200a4a48a?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:48.478 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:48.479 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:48.479 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:48.480 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:48.481 [print] https://haleconnect.com/services/bsp/org.874.1fe64439-81bd-4adb-8a64-957200a4a48a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:48.483 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:48.484 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:48.485 [print] true
76
* eval db.writeln('"7d33772b-8bb4-4c9a-b5b4-07ada37694cd","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7d33772b-8bb4-4c9a-b5b4-07ada37694cd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7d33772b-8bb4-4c9a-b5b4-07ada37694cd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.61:82]
b145a28d-70fd-4a8e-9750-3865bbcc5bea
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:48.153 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b145a28d-70fd-4a8e-9750-3865bbcc5bea'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b145a28d-70fd-4a8e-9750-3865bbcc5bea'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:48.717 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.1fe64439-81bd-4adb-8a64-957200a4a48a?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:48.718 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:48.719 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:48.719 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:48.720 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:48.720 [print] https://haleconnect.com/services/bsp/org.874.1fe64439-81bd-4adb-8a64-957200a4a48a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:48.721 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:48.722 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:48.723 [print] true
76
* eval db.writeln('"b145a28d-70fd-4a8e-9750-3865bbcc5bea","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b145a28d-70fd-4a8e-9750-3865bbcc5bea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b145a28d-70fd-4a8e-9750-3865bbcc5bea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.62:82]
70bf4086-b557-4803-96d3-6dc397a5b135
ms: 579
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:48.276 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
1
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '70bf4086-b557-4803-96d3-6dc397a5b135'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '70bf4086-b557-4803-96d3-6dc397a5b135'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:48.846 [print] https://inspire.caris.nl/geoserver/baseline/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:48.847 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:48.848 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:48.849 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:48.850 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:48.850 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=1249746f-c2a6-4639-98f2-251676b3528e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:48.852 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:48.853 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:48.854 [print] "true";"true"
76
* eval db.writeln('"70bf4086-b557-4803-96d3-6dc397a5b135","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"70bf4086-b557-4803-96d3-6dc397a5b135","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"70bf4086-b557-4803-96d3-6dc397a5b135","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.63:82]
f3e68b05-f5c8-4796-bc67-33a3db1c1d65
ms: 586
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:48.345 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f3e68b05-f5c8-4796-bc67-33a3db1c1d65'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
572
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f3e68b05-f5c8-4796-bc67-33a3db1c1d65'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:48.924 [print] https://inspire.caris.nl/geoserver/cz/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:48.925 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:48.926 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:48.926 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:48.927 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:48.927 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=424c1d5c-063b-4372-99f5-c85786b4a9d0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:48.928 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:48.929 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:48.930 [print] "true";"true"
76
* eval db.writeln('"f3e68b05-f5c8-4796-bc67-33a3db1c1d65","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f3e68b05-f5c8-4796-bc67-33a3db1c1d65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f3e68b05-f5c8-4796-bc67-33a3db1c1d65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.64:82]
ad9e37cb-537f-4d98-8c03-820ee2d872d6
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:48.489 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ad9e37cb-537f-4d98-8c03-820ee2d872d6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ad9e37cb-537f-4d98-8c03-820ee2d872d6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:49.045 [print] https://haleconnect.com/ows/services/org.292.7c48322f-f9cf-4a08-aa63-c4de080c13a1_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:49.046 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:49.047 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:49.047 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:49.047 [print] Rijkswaterstaat
57
* print operateson
0
04:50:49.047 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7c48322f-f9cf-4a08-aa63-c4de080c13aab#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:49.049 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:49.050 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:49.050 [print] true
76
* eval db.writeln('"ad9e37cb-537f-4d98-8c03-820ee2d872d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ad9e37cb-537f-4d98-8c03-820ee2d872d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ad9e37cb-537f-4d98-8c03-820ee2d872d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
5
Scenario: [1.65:82]
1009c2a4-4dba-49a5-b643-914ba8b80b52
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:48.726 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1009c2a4-4dba-49a5-b643-914ba8b80b52'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1009c2a4-4dba-49a5-b643-914ba8b80b52'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:49.288 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:49.288 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:49.289 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:49.289 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:49.290 [print] KNMI
57
* print operateson
0
04:50:49.290 [print] https://haleconnect.com/services/bsp/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:49.291 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:49.293 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:49.294 [print] true
76
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.66:82]
d0b1a576-d1c5-47b4-972f-353f37eb1f8d
ms: 551
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:48.858 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd0b1a576-d1c5-47b4-972f-353f37eb1f8d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
538
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd0b1a576-d1c5-47b4-972f-353f37eb1f8d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:49.404 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.c9827525-5ea6-47bc-aa4a-3fa9665f0327?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:49.405 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:49.405 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:49.405 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:49.406 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:49.406 [print] https://haleconnect.com/services/bsp/org.874.c9827525-5ea6-47bc-aa4a-3fa9665f0327/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:49.407 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:49.408 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:49.409 [print] true
76
* eval db.writeln('"d0b1a576-d1c5-47b4-972f-353f37eb1f8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d0b1a576-d1c5-47b4-972f-353f37eb1f8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d0b1a576-d1c5-47b4-972f-353f37eb1f8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.67:82]
2f28bd85-0afc-4dc1-85f3-dac55c1b485e
ms: 597
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:48.933 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2f28bd85-0afc-4dc1-85f3-dac55c1b485e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
583
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2f28bd85-0afc-4dc1-85f3-dac55c1b485e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:49.525 [print] https://haleconnect.com/ows/services/org.874.c4108a11-bdbb-4461-8902-423531561a7e_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:49.526 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:49.526 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:49.526 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:49.527 [print] KNMI
57
* print operateson
0
04:50:49.527 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:49.528 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:49.529 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:49.530 [print] true
76
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.68:82]
9de0d2fa-debc-4f27-8298-5399b7844962
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:49.058 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9de0d2fa-debc-4f27-8298-5399b7844962'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9de0d2fa-debc-4f27-8298-5399b7844962'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:49.622 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.1d098355-23c3-4bd3-adf6-192549933ec3?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:49.623 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:49.623 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:49.623 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:49.624 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:49.624 [print] https://haleconnect.com/services/bsp/org.874.1d098355-23c3-4bd3-adf6-192549933ec3/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:49.625 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:49.626 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:49.627 [print] true
76
* eval db.writeln('"9de0d2fa-debc-4f27-8298-5399b7844962","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9de0d2fa-debc-4f27-8298-5399b7844962","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9de0d2fa-debc-4f27-8298-5399b7844962","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.69:82]
c1c478ec-2453-49cd-a445-0b68789ce2b8
ms: 579
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:49.297 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c1c478ec-2453-49cd-a445-0b68789ce2b8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c1c478ec-2453-49cd-a445-0b68789ce2b8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:49.863 [print] https://haleconnect.com/ows/services/org.292.c4dce550-ea49-11e3-ac10-0800200c9a68_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:49.864 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:49.864 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:49.865 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:49.866 [print] Rijkswaterstaat
57
* print operateson
0
04:50:49.866 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=891ddc2d-8949-4a45-be96-c65b87c41f13#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:49.868 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:49.869 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:49.870 [print] true
76
* eval db.writeln('"c1c478ec-2453-49cd-a445-0b68789ce2b8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c1c478ec-2453-49cd-a445-0b68789ce2b8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
6
78
* eval db.writeln('"c1c478ec-2453-49cd-a445-0b68789ce2b8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.70:82]
42da491e-d8b9-47ba-af65-acb15ea8a055
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:49.412 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '42da491e-d8b9-47ba-af65-acb15ea8a055'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
560
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '42da491e-d8b9-47ba-af65-acb15ea8a055'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:50:49.980 [print] https://www.broinspireservices.nl/wms/osamepl-a-v1.0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:49.981 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:50:49.982 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:49.983 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:49.984 [print]
57
* print operateson
0
04:50:49.984 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=24de356e-ec4d-4a18-9903-6401d222b77c&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:49.986 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:49.987 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:49.988 [print] "true";"false"
76
* eval db.writeln('"42da491e-d8b9-47ba-af65-acb15ea8a055","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"42da491e-d8b9-47ba-af65-acb15ea8a055","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"42da491e-d8b9-47ba-af65-acb15ea8a055","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.71:82]
a4c5aa6c-6c7f-45d7-9799-011edd83d9c2
ms: 621
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:49.533 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a4c5aa6c-6c7f-45d7-9799-011edd83d9c2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
602
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a4c5aa6c-6c7f-45d7-9799-011edd83d9c2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
3
45
* print connectUrl
0
04:50:50.145 [print] https://inspire.caris.nl/gs5/ProspectingAndMiningPermitArea/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
04:50:50.148 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:50.148 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:50.149 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:50.150 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:50.150 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c2225e5d-b46f-4e38-8445-ab10fd40c0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:50.152 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:50.153 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:50.154 [print] "true";"true"
76
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.72:82]
9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:49.630 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:50.185 [print] https://inspire.caris.nl/geoserver3/rws/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:50.186 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:50.187 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:50.187 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:50.187 [print] Rijkswaterstaat
57
* print operateson
0
04:50:50.187 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:50.189 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:50.190 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:50.190 [print] "false";"true"
76
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.73:82]
17db4dd9-462f-4b9e-b14f-0004cacdafbb
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:49.880 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '17db4dd9-462f-4b9e-b14f-0004cacdafbb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '17db4dd9-462f-4b9e-b14f-0004cacdafbb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:50.436 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.c9827525-5ea6-47bc-aa4a-3fa9665f0327?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:50.437 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:50.437 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:50.437 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:50.438 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:50.438 [print] https://haleconnect.com/services/bsp/org.874.c9827525-5ea6-47bc-aa4a-3fa9665f0327/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:50.440 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:50.440 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:50.441 [print] true
76
* eval db.writeln('"17db4dd9-462f-4b9e-b14f-0004cacdafbb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"17db4dd9-462f-4b9e-b14f-0004cacdafbb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"17db4dd9-462f-4b9e-b14f-0004cacdafbb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.74:82]
c56433ca-35f2-4aaf-8bfa-35d8e0e52dda
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:49.992 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c56433ca-35f2-4aaf-8bfa-35d8e0e52dda'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c56433ca-35f2-4aaf-8bfa-35d8e0e52dda'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:50.564 [print] https://data.rivm.nl/geo/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:50.565 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:50.566 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:50.566 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:50.568 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:50:50.568 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:50.570 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:50.571 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:50.572 [print] "true";"true"
76
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.75:82]
12505d53-a942-467e-a462-ddbe5ac6467f
ms: 565
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:50.157 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '12505d53-a942-467e-a462-ddbe5ac6467f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '12505d53-a942-467e-a462-ddbe5ac6467f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:50.717 [print] https://haleconnect.com/ows/services/org.874.28716afd-1e98-4623-9239-8abbd9249408_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:50.717 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:50.718 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:50.718 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:50.719 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:50.719 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:50.720 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:50.721 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:50.722 [print] true
76
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.76:82]
1e01d173-96f4-40b1-8236-c6a9cfdac252
ms: 591
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:50.194 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1e01d173-96f4-40b1-8236-c6a9cfdac252'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1e01d173-96f4-40b1-8236-c6a9cfdac252'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:50.757 [print] https://haleconnect.com/ows/services/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:50.758 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:50.758 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:50.758 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
20
56
* print organisationpath
0
04:50:50.778 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:50.778 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:50.780 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:50.782 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:50.784 [print] true
76
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.77:82]
cf89409f-e268-4adb-9f34-a63b84ecfc12
ms: 584
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:50.444 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cf89409f-e268-4adb-9f34-a63b84ecfc12'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cf89409f-e268-4adb-9f34-a63b84ecfc12'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:51.021 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.f8e8e27f-9a8a-4704-b3d6-f42dc97157d2?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:51.022 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:51.023 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:51.023 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:51.024 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:51.024 [print] https://haleconnect.com/services/bsp/org.874.f8e8e27f-9a8a-4704-b3d6-f42dc97157d2/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:51.026 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:51.027 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:51.027 [print] true
76
* eval db.writeln('"cf89409f-e268-4adb-9f34-a63b84ecfc12","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cf89409f-e268-4adb-9f34-a63b84ecfc12","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cf89409f-e268-4adb-9f34-a63b84ecfc12","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.78:82]
914a6e0c-2aae-42f8-8425-2a047c245dab
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:50.575 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '914a6e0c-2aae-42f8-8425-2a047c245dab'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '914a6e0c-2aae-42f8-8425-2a047c245dab'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:51.133 [print] https://haleconnect.com/ows/services/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:51.134 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:51.134 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:51.135 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:51.136 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:51.136 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:51.137 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:51.138 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:51.139 [print] true
76
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.79:82]
d9227c23-9d36-46ce-8ac9-a208103c218e
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:50.724 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd9227c23-9d36-46ce-8ac9-a208103c218e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
544
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd9227c23-9d36-46ce-8ac9-a208103c218e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:51.278 [print] https://haleconnect.com/ows/services/org.292.cefad637-5ffd-4dd0-b475-bc125a11f7e6_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:51.279 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:51.280 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:51.280 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:51.281 [print] Rijkswaterstaat
57
* print operateson
0
04:50:51.282 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cefad637-5ffd-4dd0-b475-bc125a11f7ea#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:51.284 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:51.285 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:51.287 [print] "true";"true"
76
* eval db.writeln('"d9227c23-9d36-46ce-8ac9-a208103c218e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d9227c23-9d36-46ce-8ac9-a208103c218e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d9227c23-9d36-46ce-8ac9-a208103c218e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.80:82]
9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40
ms: 567
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:50.787 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:51.349 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.0f6d394b-5d46-4e53-a985-8fd3bb721d8e?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:51.350 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:51.351 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:51.351 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:51.351 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:51.351 [print] https://haleconnect.com/services/bsp/org.874.0f6d394b-5d46-4e53-a985-8fd3bb721d8e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:51.353 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:51.354 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:51.354 [print] true
76
* eval db.writeln('"9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.81:82]
0426f471-f325-42ed-a775-81c397592e86
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:51.031 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0426f471-f325-42ed-a775-81c397592e86'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0426f471-f325-42ed-a775-81c397592e86'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:51.588 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:51.589 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:51.590 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:51.590 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:51.590 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:50:51.590 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:51.592 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:51.592 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:51.593 [print] "false";"false"
76
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.82:82]
ce0a3f8e-6713-455f-805e-a067162c287d
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:51.144 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ce0a3f8e-6713-455f-805e-a067162c287d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ce0a3f8e-6713-455f-805e-a067162c287d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:51.694 [print] https://haleconnect.com/ows/services/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:51.694 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:51.695 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:51.696 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:51.697 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:51.697 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:51.699 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:51.700 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:51.701 [print] true
76
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.83:82]
ebd029f5-6e8f-4d61-b89a-11427c96bf3a
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:51.290 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
4
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ebd029f5-6e8f-4d61-b89a-11427c96bf3a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
555
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ebd029f5-6e8f-4d61-b89a-11427c96bf3a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
5
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:51.861 [print] https:\/\/inspire.caris.nl\/gs4\/LAT2018OF\/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:51.862 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:51.862 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:51.862 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:51.863 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:51.863 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=be6551de-a709-4c6d-a5e2-f63f0cf038ba&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:51.864 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:51.865 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:51.866 [print] "true";"true"
76
* eval db.writeln('"ebd029f5-6e8f-4d61-b89a-11427c96bf3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ebd029f5-6e8f-4d61-b89a-11427c96bf3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ebd029f5-6e8f-4d61-b89a-11427c96bf3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.84:82]
95e2c712-1b91-4f24-9453-c56b95227717
ms: 556
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:51.357 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '95e2c712-1b91-4f24-9453-c56b95227717'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '95e2c712-1b91-4f24-9453-c56b95227717'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:51.907 [print] https://data.rivm.nl/geo/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:51.908 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:51.908 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:51.908 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:51.909 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:50:51.909 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:51.910 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:51.911 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:51.912 [print] "true";"true";"true"
76
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.85:82]
97b49056-8ace-426c-ae3e-bf7efe4c000f
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:51.596 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '97b49056-8ace-426c-ae3e-bf7efe4c000f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '97b49056-8ace-426c-ae3e-bf7efe4c000f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:52.162 [print] https://inspire.caris.nl/geoserver/baselinews/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:52.162 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:52.163 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:52.163 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:52.164 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:52.164 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=1249746f-c2a6-4639-98f2-251676b3528e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:52.165 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:52.166 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:52.167 [print] "true";"true"
76
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.86:82]
4074b3c3-ca85-45ad-bc0d-b5fca8540z0b
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:51.704 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4074b3c3-ca85-45ad-bc0d-b5fca8540z0b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4074b3c3-ca85-45ad-bc0d-b5fca8540z0b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:52.269 [print] https://service.pdok.nl/kadaster/adressen/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:52.270 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:52.270 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:52.270 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:52.271 [print] Beheer PDOK
57
* print operateson
0
04:50:52.271 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:52.273 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:52.274 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:52.274 [print] "true";"true"
76
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540z0b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540z0b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540z0b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.87:82]
142cf0d7-10d9-46cd-ab5c-1eb213ab9204
ms: 594
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:51.869 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '142cf0d7-10d9-46cd-ab5c-1eb213ab9204'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
581
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '142cf0d7-10d9-46cd-ab5c-1eb213ab9204'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:52.457 [print] https://haleconnect.com/ows/services/org.292.1bb6e186-633d-4a05-9fdf-b12a2f21fe6f_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:52.458 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:52.458 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:52.458 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:52.459 [print] Rijkswaterstaat
57
* print operateson
0
04:50:52.459 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1bb6e186-633d-4a05-9fdf-b12a2f21fe6m#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:52.461 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:52.461 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:52.462 [print] true
76
* eval db.writeln('"142cf0d7-10d9-46cd-ab5c-1eb213ab9204","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"142cf0d7-10d9-46cd-ab5c-1eb213ab9204","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"142cf0d7-10d9-46cd-ab5c-1eb213ab9204","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.88:82]
76342a6d-452e-4e21-b5c0-81ff7b1be90e
ms: 604
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:51.915 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '76342a6d-452e-4e21-b5c0-81ff7b1be90e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
588
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '76342a6d-452e-4e21-b5c0-81ff7b1be90e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:52.510 [print] https://www.broinspireservices.nl/wfs/ossobor-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:52.511 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:52.512 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:52.513 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:52.514 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:50:52.514 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=9dd9bf30-36e6-45ae-b368-bdef2720bdde&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:52.516 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:52.517 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:52.518 [print] "true";"true"
76
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.89:82]
bbf57a25-0476-4d46-8e68-caaa5864a177
ms: 588
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:52.170 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bbf57a25-0476-4d46-8e68-caaa5864a177'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
577
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bbf57a25-0476-4d46-8e68-caaa5864a177'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:52.754 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.b005ca06-7d3d-4805-bcac-0fb65196db22?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:52.754 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:52.755 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:52.755 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:52.755 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:52.755 [print] https://haleconnect.com/services/bsp/org.874.b005ca06-7d3d-4805-bcac-0fb65196db22/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:52.757 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:52.757 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:52.758 [print] true
76
* eval db.writeln('"bbf57a25-0476-4d46-8e68-caaa5864a177","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bbf57a25-0476-4d46-8e68-caaa5864a177","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bbf57a25-0476-4d46-8e68-caaa5864a177","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.90:82]
f7bcefa1-6878-4eb7-b65a-d19b23b49f96
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:52.277 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f7bcefa1-6878-4eb7-b65a-d19b23b49f96'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f7bcefa1-6878-4eb7-b65a-d19b23b49f96'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:52.834 [print] https://service.pdok.nl/hwh/administratieve-eenheden/waterschapsgrenzen/wms/v1_0?service=wms&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:52.835 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:52.836 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:52.836 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:52.836 [print] Beheer PDOK
57
* print operateson
0
04:50:52.836 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d4ec7e6-50ae-4c71-bd20-5b9211e2135f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:52.838 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:52.838 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:52.839 [print] "true";"true"
76
* eval db.writeln('"f7bcefa1-6878-4eb7-b65a-d19b23b49f96","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"f7bcefa1-6878-4eb7-b65a-d19b23b49f96","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f7bcefa1-6878-4eb7-b65a-d19b23b49f96","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.91:82]
23aa5150-fcc7-46ea-ae63-a7f198d8bc18
ms: 602
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:52.465 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '23aa5150-fcc7-46ea-ae63-a7f198d8bc18'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
590
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '23aa5150-fcc7-46ea-ae63-a7f198d8bc18'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:53.062 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:53.063 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:53.064 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:53.064 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:53.064 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:50:53.064 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:53.066 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:53.066 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:53.067 [print] "true";"true";"true"
76
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.92:82]
c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:52.522 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:53.091 [print] https://haleconnect.com/ows/services/org.874.28716afd-1e98-4623-9239-8abbd9249408_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:53.091 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:53.092 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:53.092 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:53.093 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:53.093 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:53.094 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:53.095 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:53.096 [print] true
76
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.93:82]
68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:52.761 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:53.317 [print] https:\/\/geo.rijkswaterstaat.nl\/services\/ogc\/hws\/wm\/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:53.318 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:53.319 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:53.319 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:53.320 [print] Rijkswaterstaat
57
* print operateson
0
04:50:53.320 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:53.321 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:53.322 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:53.323 [print] "true";"true"
76
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.94:82]
3fa3aa0b-cd4a-4680-ad2e-89fc28411565
ms: 541
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:52.843 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
1
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
3
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
2
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3fa3aa0b-cd4a-4680-ad2e-89fc28411565'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3fa3aa0b-cd4a-4680-ad2e-89fc28411565'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:53.381 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.f8e8e27f-9a8a-4704-b3d6-f42dc97157d2?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:53.381 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:53.382 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:53.382 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:53.383 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:50:53.383 [print] https://haleconnect.com/services/bsp/org.874.f8e8e27f-9a8a-4704-b3d6-f42dc97157d2/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:53.385 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:53.386 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:53.386 [print] true
76
* eval db.writeln('"3fa3aa0b-cd4a-4680-ad2e-89fc28411565","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3fa3aa0b-cd4a-4680-ad2e-89fc28411565","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3fa3aa0b-cd4a-4680-ad2e-89fc28411565","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.95:82]
745968a3-37af-4406-988e-ec595f58c7fe
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:53.070 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '745968a3-37af-4406-988e-ec595f58c7fe'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '745968a3-37af-4406-988e-ec595f58c7fe'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:53.627 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:53.627 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:53.628 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:53.628 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:53.629 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:50:53.629 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:53.631 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:53.631 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:53.632 [print] "true";"true";"true"
76
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.96:82]
dda53ebc-bee7-4765-8f1f-6ac59b0aec39
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:53.099 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dda53ebc-bee7-4765-8f1f-6ac59b0aec39'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dda53ebc-bee7-4765-8f1f-6ac59b0aec39'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:53.665 [print] https://www.broinspireservices.nl/wms/ossobor-a-v1.0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:53.665 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:53.666 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:53.666 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:53.667 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:50:53.667 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=9dd9bf30-36e6-45ae-b368-bdef2720bdde&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:53.669 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:53.669 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:53.670 [print] "true";"false"
76
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
5
Scenario: [1.97:82]
081bcfff-5f66-467c-95d0-d88dcf9aa4cf
ms: 549
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:53.327 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '081bcfff-5f66-467c-95d0-d88dcf9aa4cf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
535
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '081bcfff-5f66-467c-95d0-d88dcf9aa4cf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:53.869 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:53.870 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:53.871 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:53.871 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:53.872 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:50:53.873 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:53.875 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:53.876 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:53.877 [print] "true";"true";"true"
76
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.98:82]
db1e010a-96f8-453e-b63c-9c27d6273157
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:53.389 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'db1e010a-96f8-453e-b63c-9c27d6273157'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'db1e010a-96f8-453e-b63c-9c27d6273157'
15
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
8
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:53.968 [print] https:\/\/service.pdok.nl\/cbs\/bestandbodemgebruik\/2015\/wms\/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:53.969 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:53.970 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:53.970 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:53.972 [print] Beheer PDOK
57
* print operateson
0
04:50:53.972 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d3dd6d2-2d2b-4b5f-9e30-86e19ed77a56#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:53.974 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:53.975 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:53.977 [print] "true";"true"
76
* eval db.writeln('"db1e010a-96f8-453e-b63c-9c27d6273157","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"db1e010a-96f8-453e-b63c-9c27d6273157","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"db1e010a-96f8-453e-b63c-9c27d6273157","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.99:82]
448cc407-e405-4f07-8260-7489ec3b4f14
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:53.635 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '448cc407-e405-4f07-8260-7489ec3b4f14'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
545
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '448cc407-e405-4f07-8260-7489ec3b4f14'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:54.188 [print] https://service.pdok.nl/cbs/bestandbodemgebruik/2017/wms/v1_0?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:54.189 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:54.190 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:54.190 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:54.191 [print] Beheer PDOK
57
* print operateson
0
04:50:54.191 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9bf1ce1-5197-409e-b19e-340e50afafc4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:54.193 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:54.194 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:54.194 [print] "true";"true"
76
* eval db.writeln('"448cc407-e405-4f07-8260-7489ec3b4f14","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"448cc407-e405-4f07-8260-7489ec3b4f14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"448cc407-e405-4f07-8260-7489ec3b4f14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.100:82]
25a99d92-ea8a-4163-82ab-3521c9b0c96b
ms: 595
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:53.678 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '25a99d92-ea8a-4163-82ab-3521c9b0c96b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
575
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '25a99d92-ea8a-4163-82ab-3521c9b0c96b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:54.263 [print] https:\/\/service.pdok.nl\/cbs\/bestandbodemgebruik\/2015\/wfs\/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
04:50:54.265 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:54.266 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:54.267 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:54.268 [print] Beheer PDOK
57
* print operateson
0
04:50:54.268 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d3dd6d2-2d2b-4b5f-9e30-86e19ed77a56#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:54.270 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:54.272 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:54.273 [print] "true";"true"
76
* eval db.writeln('"25a99d92-ea8a-4163-82ab-3521c9b0c96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"25a99d92-ea8a-4163-82ab-3521c9b0c96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"25a99d92-ea8a-4163-82ab-3521c9b0c96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.101:82]
89b35a6c-c099-456b-8eaf-2b83c7a35c74
ms: 608
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:53.881 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '89b35a6c-c099-456b-8eaf-2b83c7a35c74'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
589
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '89b35a6c-c099-456b-8eaf-2b83c7a35c74'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:54.480 [print] https://service.pdok.nl/rvo/nationaleparken/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:54.481 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:54.482 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:54.483 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:54.484 [print] Beheer PDOK
57
* print operateson
0
04:50:54.484 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=247a1d15-0a67-40ce-85be-1403c08f15a8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:54.486 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:54.487 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:54.489 [print] "true";"true"
76
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.102:82]
d7d19437-f875-45b3-86cd-2fa3335479ec
ms: 592
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:53.980 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd7d19437-f875-45b3-86cd-2fa3335479ec'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
567
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd7d19437-f875-45b3-86cd-2fa3335479ec'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:54.558 [print] https://service.pdok.nl/rvo/nationaleparken/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:54.559 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:54.560 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:54.560 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:54.561 [print] Beheer PDOK
57
* print operateson
0
04:50:54.562 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=247a1d15-0a67-40ce-85be-1403c08f15a8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:50:54.564 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:54.566 [print] "Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de interoperable conformance class.";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:54.567 [print] "true";"true";"true"
76
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
6
Scenario: [1.103:82]
3bfab77c-1663-4334-b7cb-b972de6096b1
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:54.198 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3bfab77c-1663-4334-b7cb-b972de6096b1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3bfab77c-1663-4334-b7cb-b972de6096b1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:54.767 [print] https://service.pdok.nl/provincies/geluidzones-rondom-vliegvelden/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:54.768 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:54.769 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:54.769 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:54.770 [print] Beheer PDOK
57
* print operateson
0
04:50:54.770 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=41023936-009d-48ec-a90d-c966895463c1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:54.772 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:54.773 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:54.774 [print] "true";"true"
76
* eval db.writeln('"3bfab77c-1663-4334-b7cb-b972de6096b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3bfab77c-1663-4334-b7cb-b972de6096b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3bfab77c-1663-4334-b7cb-b972de6096b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.104:82]
b9fa42a0-41f9-4405-a593-d51721939222
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:54.276 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b9fa42a0-41f9-4405-a593-d51721939222'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b9fa42a0-41f9-4405-a593-d51721939222'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:54.856 [print] https://service.pdok.nl/cbs/bestandbodemgebruik/2017/wfs/v1_0?request=getCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:54.857 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:54.858 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:54.859 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:54.860 [print] Beheer PDOK
57
* print operateson
0
04:50:54.860 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9bf1ce1-5197-409e-b19e-340e50afafc4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:50:54.862 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:54.863 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:50:54.865 [print] "true";"true";"true"
76
* eval db.writeln('"b9fa42a0-41f9-4405-a593-d51721939222","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b9fa42a0-41f9-4405-a593-d51721939222","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b9fa42a0-41f9-4405-a593-d51721939222","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.105:82]
1ce74355-763a-481d-b9d7-aaafbf0d7d53
ms: 630
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:54.492 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1ce74355-763a-481d-b9d7-aaafbf0d7d53'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
618
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1ce74355-763a-481d-b9d7-aaafbf0d7d53'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:55.117 [print] https://service.pdok.nl/rvo/habitatrichtlijnsoorten/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:55.118 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:55.118 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:55.119 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:55.119 [print] Beheer PDOK
57
* print operateson
0
04:50:55.119 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=28c4780a-1a44-4376-b283-14a50a481729#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:55.120 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:55.121 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:55.122 [print] "true";"true"
76
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.106:82]
b0119753-5625-4500-9df3-13823ff9868f
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:54.576 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b0119753-5625-4500-9df3-13823ff9868f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
566
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b0119753-5625-4500-9df3-13823ff9868f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:55.150 [print] https://service.pdok.nl/rvo/habitatrichtlijntypen/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:55.151 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:55.152 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:55.152 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:55.153 [print] Beheer PDOK
57
* print operateson
0
04:50:55.154 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:50:55.156 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:55.157 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:55.158 [print] "true";"true"
76
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.107:82]
af4841b5-ce83-4edb-af41-429a21140316
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:54.777 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'af4841b5-ce83-4edb-af41-429a21140316'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'af4841b5-ce83-4edb-af41-429a21140316'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:55.325 [print] https://service.pdok.nl/rvo/habitatrichtlijntypen/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:55.325 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:55.326 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:55.326 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:50:55.326 [print] Beheer PDOK
57
* print operateson
0
04:50:55.326 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:55.327 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:55.328 [print] "Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:55.329 [print] "true";"true";"true"
76
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.108:82]
9c80458b-12c6-4d38-8f6d-387ab6e4ed21
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:54.870 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c80458b-12c6-4d38-8f6d-387ab6e4ed21'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
539
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c80458b-12c6-4d38-8f6d-387ab6e4ed21'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:55.416 [print] https://service.pdok.nl/rvo/natura2000/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:55.417 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:55.417 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:55.417 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:55.418 [print] Beheer PDOK
57
* print operateson
0
04:50:55.418 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8829e5dd-c861-4639-a6c8-fdbb6e3440d2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:55.419 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:55.420 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:55.421 [print] "false";"false"
76
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.109:82]
7977f282-433e-41f9-940b-63f5d28ee44c
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:55.125 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7977f282-433e-41f9-940b-63f5d28ee44c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7977f282-433e-41f9-940b-63f5d28ee44c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:55.679 [print] https://service.pdok.nl/provincies/stiltegebieden/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:55.679 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:55.680 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:55.680 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:55.680 [print] Beheer PDOK
57
* print operateson
0
04:50:55.680 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:55.681 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:55.682 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:55.683 [print] "true";"true"
76
* eval db.writeln('"7977f282-433e-41f9-940b-63f5d28ee44c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7977f282-433e-41f9-940b-63f5d28ee44c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7977f282-433e-41f9-940b-63f5d28ee44c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.110:82]
4ce823b4-94b4-4d24-8512-519179315878
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:55.161 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4ce823b4-94b4-4d24-8512-519179315878'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4ce823b4-94b4-4d24-8512-519179315878'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:55.731 [print] https://service.pdok.nl/provincies/provinciale-monumenten/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:55.732 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:55.733 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:55.733 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:55.734 [print] Beheer PDOK
57
* print operateson
0
04:50:55.734 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ca94a0cb-7561-4a10-a7d6-b840e56c33ff#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:55.736 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:55.737 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:55.738 [print] "true";"true"
76
* eval db.writeln('"4ce823b4-94b4-4d24-8512-519179315878","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"4ce823b4-94b4-4d24-8512-519179315878","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4ce823b4-94b4-4d24-8512-519179315878","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.111:82]
1bd24d1e-aa13-4395-809e-893570f7c651
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:55.332 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1bd24d1e-aa13-4395-809e-893570f7c651'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1bd24d1e-aa13-4395-809e-893570f7c651'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:55.882 [print] https://service.pdok.nl/kvk/overheidsdiensten/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:55.883 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:55.884 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:55.884 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:55.885 [print] Beheer PDOK
57
* print operateson
0
04:50:55.886 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=c935f2ab-9b65-4dc4-94a0-73aeb840a941#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:55.887 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:55.888 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:55.889 [print] "true";"true"
76
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.112:82]
93a9571d-1754-47ee-a8f9-92633abfab3a
ms: 555
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:55.424 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '93a9571d-1754-47ee-a8f9-92633abfab3a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
540
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '93a9571d-1754-47ee-a8f9-92633abfab3a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:50:55.972 [print] https://service.pdok.nl/rvo/invasieve-exoten/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:55.972 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:55.973 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:55.974 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:55.975 [print] Beheer PDOK
57
* print operateson
0
04:50:55.975 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3703b249-a0eb-484e-ba7a-10e31a55bcec#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:55.977 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:55.978 [print] "Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de interoperable conformance class.";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:55.979 [print] "true";"true";"true"
76
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.113:82]
b196f948-5d87-4eb4-9854-a93841c3877f
ms: 585
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:55.686 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b196f948-5d87-4eb4-9854-a93841c3877f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
573
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b196f948-5d87-4eb4-9854-a93841c3877f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:56.266 [print] https://service.pdok.nl/rvo/invasieve-exoten/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:56.267 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:56.267 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:56.268 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:56.268 [print] Beheer PDOK
57
* print operateson
0
04:50:56.268 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3703b249-a0eb-484e-ba7a-10e31a55bcec#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:56.270 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:56.270 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:56.271 [print] "true";"true"
76
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.114:82]
060d1139-c371-4c1e-9890-55999adfa4f9
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:55.741 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '060d1139-c371-4c1e-9890-55999adfa4f9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '060d1139-c371-4c1e-9890-55999adfa4f9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:56.307 [print] https://inspire.caris.nl/geoserver/boundary/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:56.308 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:56.308 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:56.309 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:56.310 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:56.310 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dc528841-cb0f-4962-83bc-5c84ca6c4926#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:56.311 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:56.312 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:56.313 [print] "true";"true"
76
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.115:82]
2e5571fb-c840-4d84-8224-62ee7293b2b3
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:55.892 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2e5571fb-c840-4d84-8224-62ee7293b2b3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2e5571fb-c840-4d84-8224-62ee7293b2b3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:56.462 [print] https://service.pdok.nl/provincies/grondwaterbeschermingsgebieden/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:56.463 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:56.463 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:56.463 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:56.464 [print] Beheer PDOK
57
* print operateson
0
04:50:56.464 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=666554ed-5106-487d-b4bf-69fbd888a6d7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:56.465 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:56.466 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:56.466 [print] "true";"true"
76
* eval db.writeln('"2e5571fb-c840-4d84-8224-62ee7293b2b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2e5571fb-c840-4d84-8224-62ee7293b2b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2e5571fb-c840-4d84-8224-62ee7293b2b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.116:82]
972edbaa-f860-4c48-b449-4f238a263472
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:55.982 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '972edbaa-f860-4c48-b449-4f238a263472'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
546
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '972edbaa-f860-4c48-b449-4f238a263472'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:56.536 [print] https://service.pdok.nl/rvo/restwarmte/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:56.536 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:56.537 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:56.537 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:56.538 [print] Beheer PDOK
57
* print operateson
0
04:50:56.538 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d6b85d84-cdb9-4a6e-b799-cf8826e22a94#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:56.539 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:56.540 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:56.541 [print] "true";"true"
76
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.117:82]
3dc373ae-fcf6-49c9-b315-9a2178bffe4a
ms: 565
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:56.274 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3dc373ae-fcf6-49c9-b315-9a2178bffe4a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3dc373ae-fcf6-49c9-b315-9a2178bffe4a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:56.832 [print] https://service.pdok.nl/rvo/restwarmte/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:56.833 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:56.833 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:56.834 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:56.835 [print] Beheer PDOK
57
* print operateson
0
04:50:56.835 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d6b85d84-cdb9-4a6e-b799-cf8826e22a94#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:56.836 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:56.837 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:56.838 [print] "true";"true"
76
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.118:82]
598c4109-21d2-4a6c-b083-9975a6736853
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:56.316 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '598c4109-21d2-4a6c-b083-9975a6736853'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '598c4109-21d2-4a6c-b083-9975a6736853'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:50:56.881 [print] https://service.pdok.nl/rws/weggeg/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:56.882 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:56.882 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:56.882 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:56.883 [print] Beheer PDOK
57
* print operateson
0
04:50:56.884 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=abaf1e22-55aa-4a11-a855-7ac963e4a82b#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=abaf1e22-55aa-4a11-a855-7ac963e4a82b#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:56.885 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:56.886 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:56.887 [print] "true";"true"
76
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.119:82]
e258f171-6f56-4d4d-8311-027b30213c2d
ms: 636
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:56.469 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e258f171-6f56-4d4d-8311-027b30213c2d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e258f171-6f56-4d4d-8311-027b30213c2d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
21
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
35
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:57.097 [print] https://service.pdok.nl/kadaster/cp/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:57.098 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:57.099 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:57.099 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:57.100 [print] Beheer PDOK
57
* print operateson
0
04:50:57.100 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e80ad426-1392-4349-9f80-14dae5f1bf57#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:57.102 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:57.104 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:57.105 [print] "true";"true"
76
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.120:82]
9c4862c3-0bab-49c3-bc2f-ac5486826766
ms: 597
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:56.543 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c4862c3-0bab-49c3-bc2f-ac5486826766'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
584
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c4862c3-0bab-49c3-bc2f-ac5486826766'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:57.134 [print] https://service.pdok.nl/rvo/habitatrichtlijnsoorten/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:57.135 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:57.136 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:57.136 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:57.137 [print] Beheer PDOK
57
* print operateson
0
04:50:57.137 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=28c4780a-1a44-4376-b283-14a50a481729#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:57.139 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:57.140 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:57.140 [print] "true";"true";"true"
76
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.121:82]
4041f923-6b77-4816-bf46-437e85416c31
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:56.841 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4041f923-6b77-4816-bf46-437e85416c31'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4041f923-6b77-4816-bf46-437e85416c31'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:57.402 [print] https://service.pdok.nl/rws/richtlijnmarienestrategienederland/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:57.403 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:57.403 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:57.404 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:57.404 [print] Beheer PDOK
57
* print operateson
0
04:50:57.404 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=604d241d-6792-4286-bbef-44b2ce5c38c1#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=353108a0-f0f8-4f8e-9d0e-60f18dfda169#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a33c92d0-e29b-43cb-b681-f942ef597331#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:57.406 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:57.407 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:50:57.409 [print] "true";"true"
76
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.122:82]
364c5d7a-d6ec-11ea-87d0-0242ac130003
ms: 635
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:56.890 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '364c5d7a-d6ec-11ea-87d0-0242ac130003'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
619
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '364c5d7a-d6ec-11ea-87d0-0242ac130003'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:57.517 [print] #notpresent
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:57.518 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:57.519 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:57.519 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:57.520 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:50:57.520 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=2a379cc6-d16e-11ea-87d0-0242ac130003&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:50:57.522 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:57.524 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:57.525 [print] "true";"true"
76
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.123:82]
01d4dab6-03ad-4e82-b719-4daf8b96ea14
ms: 584
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:57.110 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '01d4dab6-03ad-4e82-b719-4daf8b96ea14'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
573
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '01d4dab6-03ad-4e82-b719-4daf8b96ea14'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:57.689 [print] https://service.pdok.nl/kadaster/au/wms/v2_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:57.690 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:57.690 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:57.691 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:57.691 [print] Beheer PDOK
57
* print operateson
0
04:50:57.691 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7dd1fd45-ace5-41e0-93a6-64e3be231717#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:57.692 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:57.693 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:57.694 [print] "true";"true"
76
* eval db.writeln('"01d4dab6-03ad-4e82-b719-4daf8b96ea14","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"01d4dab6-03ad-4e82-b719-4daf8b96ea14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"01d4dab6-03ad-4e82-b719-4daf8b96ea14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.124:82]
275b64ab-34c2-41f8-8904-97812c7f716e
ms: 602
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:57.144 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '275b64ab-34c2-41f8-8904-97812c7f716e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
589
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '275b64ab-34c2-41f8-8904-97812c7f716e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:57.740 [print] https://service.pdok.nl/rvo/beschermdegebieden/wetlands/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:57.741 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:57.741 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:57.741 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:57.742 [print] Beheer PDOK
57
* print operateson
0
04:50:57.742 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=19165027-a13a-4c19-9013-ec1fd191019d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:57.743 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:57.744 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:57.745 [print] "true";"true"
76
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.125:82]
f0c6fbfe-a172-4223-8af3-58f6a28c881d
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:57.413 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f0c6fbfe-a172-4223-8af3-58f6a28c881d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f0c6fbfe-a172-4223-8af3-58f6a28c881d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:57.974 [print] https://service.pdok.nl/cbs/hh/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:57.975 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:57.975 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:57.975 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:57.976 [print] Beheer PDOK
57
* print operateson
0
04:50:57.976 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:57.977 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:57.978 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:57.979 [print] "true";"true"
76
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.126:82]
03c48a93-1e31-4c69-92c6-9a7efecf67a9
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:57.528 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '03c48a93-1e31-4c69-92c6-9a7efecf67a9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
551
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '03c48a93-1e31-4c69-92c6-9a7efecf67a9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:58.086 [print] https://service.pdok.nl/rws/digitaaltopografischbestand/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:58.087 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:58.087 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:58.087 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:58.088 [print] Beheer PDOK
57
* print operateson
0
04:50:58.088 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b137b8-2317-42c2-aced-204c4216d68d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:58.089 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:58.090 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:58.091 [print] "true";"true"
76
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.127:82]
f917ffa9-1531-48ea-867e-0d413d85b05a
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:57.696 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f917ffa9-1531-48ea-867e-0d413d85b05a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f917ffa9-1531-48ea-867e-0d413d85b05a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:58.252 [print] https://service.pdok.nl/rws/digitaaltopografischbestand/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:58.252 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:58.253 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:58.254 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:58.255 [print] Beheer PDOK
57
* print operateson
0
04:50:58.255 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b137b8-2317-42c2-aced-204c4216d68d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:50:58.257 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:50:58.258 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:58.259 [print] "true";"true"
76
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.128:82]
589a9223-7588-4cd7-93aa-5373a12d8cea
ms: 580
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:57.748 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '589a9223-7588-4cd7-93aa-5373a12d8cea'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
564
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '589a9223-7588-4cd7-93aa-5373a12d8cea'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:50:58.319 [print] https://service.pdok.nl/kadaster/hy/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:58.319 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:58.320 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:58.320 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:58.321 [print] Beheer PDOK
57
* print operateson
0
04:50:58.321 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:58.325 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:58.326 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:58.326 [print] "true";"true"
76
* eval db.writeln('"589a9223-7588-4cd7-93aa-5373a12d8cea","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"589a9223-7588-4cd7-93aa-5373a12d8cea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"589a9223-7588-4cd7-93aa-5373a12d8cea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.129:82]
8129296b-b9c1-489f-990a-df4a879e12b2
ms: 560
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:57.981 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8129296b-b9c1-489f-990a-df4a879e12b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
545
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8129296b-b9c1-489f-990a-df4a879e12b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:58.535 [print] https://service.pdok.nl/cbs/hh/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:58.536 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:58.536 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:58.537 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:58.537 [print] Beheer PDOK
57
* print operateson
0
04:50:58.538 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:58.539 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:58.540 [print] "Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de interoperable conformance class.";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:58.541 [print] "true";"true";"true"
76
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.130:82]
5dfccef3-9b52-47f2-bb02-66b74aaf3af8
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:58.095 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5dfccef3-9b52-47f2-bb02-66b74aaf3af8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5dfccef3-9b52-47f2-bb02-66b74aaf3af8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:58.651 [print] https://inspire.caris.nl/geoserver/tz/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:58.652 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:58.653 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:58.653 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:58.654 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:50:58.654 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=4d514a2b-4a7e-4686-b9ea-87cb3e17ed52&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=7fed469a-77e1-4545-a4cb-eedf389d851f#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:58.655 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:58.656 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:58.657 [print] "true";"true"
76
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.131:82]
8abcd2d1-3beb-43e5-a572-2b2da05a0a98
ms: 545
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:58.263 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8abcd2d1-3beb-43e5-a572-2b2da05a0a98'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
534
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8abcd2d1-3beb-43e5-a572-2b2da05a0a98'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:58.803 [print] https://service.pdok.nl/rws/nhi/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:58.804 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:58.804 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:58.804 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:58.805 [print] Beheer PDOK
57
* print operateson
0
04:50:58.805 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=710c381c-ab2d-45d5-a45d-af2eba811e5f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:58.806 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:58.807 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:58.808 [print] "true";"true"
76
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.132:82]
85e7cf82-b0f2-45d6-84d4-154e203ebf70
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:58.330 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '85e7cf82-b0f2-45d6-84d4-154e203ebf70'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '85e7cf82-b0f2-45d6-84d4-154e203ebf70'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
4
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:58.898 [print] https://service.pdok.nl/rvo/wetlands/wms/v1_0?request=getcapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:58.899 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:58.899 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:58.900 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:58.900 [print] Beheer PDOK
57
* print operateson
0
04:50:58.900 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07d73b60-dfd6-4c54-9c82-9fac70c6c48e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:58.902 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:58.904 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Metadata is conform specificatie";"VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Metadata is conform specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:58.905 [print] "true";"true"
76
* eval db.writeln('"85e7cf82-b0f2-45d6-84d4-154e203ebf70","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"85e7cf82-b0f2-45d6-84d4-154e203ebf70","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"85e7cf82-b0f2-45d6-84d4-154e203ebf70","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.133:82]
68a42961-ed55-436b-a412-cc7424fd2a6e
ms: 555
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:58.544 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68a42961-ed55-436b-a412-cc7424fd2a6e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68a42961-ed55-436b-a412-cc7424fd2a6e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:59.094 [print] https://service.pdok.nl/rvo/wetlands/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:59.095 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:59.096 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:59.096 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:59.096 [print] Beheer PDOK
57
* print operateson
0
04:50:59.096 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07d73b60-dfd6-4c54-9c82-9fac70c6c48e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:59.098 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:59.098 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:59.099 [print] "true";"true";"true"
76
* eval db.writeln('"68a42961-ed55-436b-a412-cc7424fd2a6e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68a42961-ed55-436b-a412-cc7424fd2a6e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68a42961-ed55-436b-a412-cc7424fd2a6e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.134:82]
1601e160-91e8-4091-9aca-10294f819d42
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:58.660 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1601e160-91e8-4091-9aca-10294f819d42'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1601e160-91e8-4091-9aca-10294f819d42'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:59.218 [print] https://service.pdok.nl/rvo/beschermdegebieden/natura2000/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:59.218 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:59.219 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:59.219 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:59.220 [print] Beheer PDOK
57
* print operateson
0
04:50:59.220 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=280ed37a-b8d2-4ac5-8567-04d84fad3a41#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:59.221 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:59.222 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de interoperable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:59.223 [print] "true";"true";"true"
76
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.135:82]
f9b731bb-7929-43e2-b77e-286ee2cc5aaa
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:58.811 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f9b731bb-7929-43e2-b77e-286ee2cc5aaa'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f9b731bb-7929-43e2-b77e-286ee2cc5aaa'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:59.370 [print] https://service.pdok.nl/cbs/landuse/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:59.371 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:59.371 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:59.371 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:59.372 [print] Beheer PDOK
57
* print operateson
0
04:50:59.372 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6318009c-7b11-4ab9-9929-735584dfb692#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:59.373 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:59.374 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:59.375 [print] "true";"true"
76
* eval db.writeln('"f9b731bb-7929-43e2-b77e-286ee2cc5aaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f9b731bb-7929-43e2-b77e-286ee2cc5aaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f9b731bb-7929-43e2-b77e-286ee2cc5aaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.136:82]
8c61b066-de2a-4b80-bd20-c878e4edae86
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:58.907 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8c61b066-de2a-4b80-bd20-c878e4edae86'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8c61b066-de2a-4b80-bd20-c878e4edae86'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:59.473 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2019/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:59.474 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:59.475 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:59.475 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:59.475 [print] Beheer PDOK
57
* print operateson
0
04:50:59.475 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:59.477 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:59.477 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:59.478 [print] "true";"true";"true"
76
* eval db.writeln('"8c61b066-de2a-4b80-bd20-c878e4edae86","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8c61b066-de2a-4b80-bd20-c878e4edae86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8c61b066-de2a-4b80-bd20-c878e4edae86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.137:82]
f874407b-25f9-4c1b-abe6-363467683bb1
ms: 586
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:59.102 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f874407b-25f9-4c1b-abe6-363467683bb1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
574
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f874407b-25f9-4c1b-abe6-363467683bb1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:59.682 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2017/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:59.683 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:59.684 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:59.684 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:59.684 [print] Beheer PDOK
57
* print operateson
0
04:50:59.685 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:59.686 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:59.687 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:59.687 [print] "true";"true"
76
* eval db.writeln('"f874407b-25f9-4c1b-abe6-363467683bb1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f874407b-25f9-4c1b-abe6-363467683bb1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f874407b-25f9-4c1b-abe6-363467683bb1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.138:82]
8c280cce-ef1b-49b6-93dc-6cee38956101
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:59.226 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8c280cce-ef1b-49b6-93dc-6cee38956101'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8c280cce-ef1b-49b6-93dc-6cee38956101'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:59.794 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2017/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:50:59.795 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:50:59.795 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:59.796 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:59.796 [print] Beheer PDOK
57
* print operateson
0
04:50:59.797 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:59.798 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:59.799 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:59.800 [print] "true";"true";"true"
76
* eval db.writeln('"8c280cce-ef1b-49b6-93dc-6cee38956101","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8c280cce-ef1b-49b6-93dc-6cee38956101","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8c280cce-ef1b-49b6-93dc-6cee38956101","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.139:82]
b39970a9-e1d7-4a20-9fbd-57661f6d6849
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:59.378 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b39970a9-e1d7-4a20-9fbd-57661f6d6849'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
545
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b39970a9-e1d7-4a20-9fbd-57661f6d6849'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:50:59.930 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2018/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:50:59.930 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:50:59.931 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:50:59.931 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:50:59.931 [print] Beheer PDOK
57
* print operateson
0
04:50:59.931 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:50:59.933 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:50:59.933 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:50:59.934 [print] "true";"true";"true"
76
* eval db.writeln('"b39970a9-e1d7-4a20-9fbd-57661f6d6849","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b39970a9-e1d7-4a20-9fbd-57661f6d6849","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b39970a9-e1d7-4a20-9fbd-57661f6d6849","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.140:82]
b965603f-7354-4d5c-9357-68c1c3777117
ms: 548
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:59.481 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b965603f-7354-4d5c-9357-68c1c3777117'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b965603f-7354-4d5c-9357-68c1c3777117'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:00.020 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2019/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:00.021 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:00.022 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:00.022 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:00.023 [print] Beheer PDOK
57
* print operateson
0
04:51:00.023 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
2
64
* print corConformanceHref
1
04:51:00.027 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:00.028 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:00.029 [print] "true";"true"
76
* eval db.writeln('"b965603f-7354-4d5c-9357-68c1c3777117","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b965603f-7354-4d5c-9357-68c1c3777117","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b965603f-7354-4d5c-9357-68c1c3777117","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.141:82]
97590436-ecaf-422b-a95e-6aa9a00b47b0
ms: 638
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:59.690 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '97590436-ecaf-422b-a95e-6aa9a00b47b0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
623
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '97590436-ecaf-422b-a95e-6aa9a00b47b0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:00.322 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2018/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:00.323 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:00.324 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:00.324 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:00.325 [print] Beheer PDOK
57
* print operateson
0
04:51:00.325 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:00.327 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:00.327 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:00.328 [print] "true";"true"
76
* eval db.writeln('"97590436-ecaf-422b-a95e-6aa9a00b47b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"97590436-ecaf-422b-a95e-6aa9a00b47b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"97590436-ecaf-422b-a95e-6aa9a00b47b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.142:82]
282e4136-612a-4d00-baa2-ebd41721d150
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:59.803 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '282e4136-612a-4d00-baa2-ebd41721d150'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '282e4136-612a-4d00-baa2-ebd41721d150'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:00.365 [print] https://service.pdok.nl/cbs/statisticalunitsvector/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:00.366 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:00.366 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:00.366 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:00.367 [print] Beheer PDOK
57
* print operateson
0
04:51:00.367 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=10d1153e-778f-4995-9b6c-7c69b196cccb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:00.368 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:00.369 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:00.370 [print] "true";"true"
76
* eval db.writeln('"282e4136-612a-4d00-baa2-ebd41721d150","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"282e4136-612a-4d00-baa2-ebd41721d150","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"282e4136-612a-4d00-baa2-ebd41721d150","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.143:82]
5be14ec9-9bb3-4395-a061-e7e78d04a527
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:50:59.937 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5be14ec9-9bb3-4395-a061-e7e78d04a527'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5be14ec9-9bb3-4395-a061-e7e78d04a527'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:51:00.500 [print] https://service.pdok.nl/kadaster/bu/wms/v1_0?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:00.501 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:00.502 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:00.502 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:00.503 [print] Beheer PDOK
57
* print operateson
0
04:51:00.503 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b4ae622c-6201-49d8-bd2e-f7fce9206a1e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:00.504 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:00.505 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:00.506 [print] "true";"true"
76
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.144:82]
d9cc67ba-5491-4640-86ac-b8d392250270
ms: 551
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:00.032 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd9cc67ba-5491-4640-86ac-b8d392250270'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
536
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd9cc67ba-5491-4640-86ac-b8d392250270'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:00.576 [print] https://service.pdok.nl/bzk/bro-bodemkaart/wms/v1_0?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:00.577 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:00.577 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:00.578 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:00.579 [print] Beheer PDOK
57
* print operateson
1
04:51:00.580 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ed960299-a147-4c1a-bc57-41ff83a2264f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ed960299-a147-4c1a-bc57-41ff83a2264f#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:00.581 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:00.582 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:00.583 [print] "true";"true"
76
* eval db.writeln('"d9cc67ba-5491-4640-86ac-b8d392250270","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d9cc67ba-5491-4640-86ac-b8d392250270","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d9cc67ba-5491-4640-86ac-b8d392250270","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.145:82]
43bb4581-0720-426f-a771-b7f9ded50fd5
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:00.331 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '43bb4581-0720-426f-a771-b7f9ded50fd5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '43bb4581-0720-426f-a771-b7f9ded50fd5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:00.904 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2021/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:00.905 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:00.905 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:00.905 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:00.906 [print] Beheer PDOK
57
* print operateson
0
04:51:00.906 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:00.907 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:00.908 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:00.908 [print] "true";"true"
76
* eval db.writeln('"43bb4581-0720-426f-a771-b7f9ded50fd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"43bb4581-0720-426f-a771-b7f9ded50fd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"43bb4581-0720-426f-a771-b7f9ded50fd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.146:82]
991033b9-73de-4abb-9e5e-269a39152852
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:00.373 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '991033b9-73de-4abb-9e5e-269a39152852'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '991033b9-73de-4abb-9e5e-269a39152852'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:00.937 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2020/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
1
04:51:00.938 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:00.939 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:00.940 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:00.941 [print] Beheer PDOK
57
* print operateson
0
04:51:00.942 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:00.943 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:00.945 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:00.946 [print] "true";"true"
76
* eval db.writeln('"991033b9-73de-4abb-9e5e-269a39152852","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"991033b9-73de-4abb-9e5e-269a39152852","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"991033b9-73de-4abb-9e5e-269a39152852","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.147:82]
9c50592e-57be-4d74-91fd-bcaee20bb14e
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:00.510 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c50592e-57be-4d74-91fd-bcaee20bb14e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
560
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c50592e-57be-4d74-91fd-bcaee20bb14e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:01.078 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2022/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:01.078 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:01.079 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:01.079 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:01.080 [print] Beheer PDOK
57
* print operateson
0
04:51:01.080 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:01.081 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:01.082 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:01.082 [print] "true";"true"
76
* eval db.writeln('"9c50592e-57be-4d74-91fd-bcaee20bb14e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9c50592e-57be-4d74-91fd-bcaee20bb14e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
4
78
* eval db.writeln('"9c50592e-57be-4d74-91fd-bcaee20bb14e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.148:82]
9c4c9bbc-4746-414b-9599-b67db6de1d6d
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:00.586 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c4c9bbc-4746-414b-9599-b67db6de1d6d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c4c9bbc-4746-414b-9599-b67db6de1d6d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:01.142 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2021/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:01.143 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:01.144 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:01.144 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:01.144 [print] Beheer PDOK
57
* print operateson
0
04:51:01.144 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:01.146 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:01.146 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:01.147 [print] "true";"true";"true"
76
* eval db.writeln('"9c4c9bbc-4746-414b-9599-b67db6de1d6d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9c4c9bbc-4746-414b-9599-b67db6de1d6d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9c4c9bbc-4746-414b-9599-b67db6de1d6d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.149:82]
db353b96-5d0b-453c-87c6-4466dfb65a9b
ms: 585
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:00.911 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'db353b96-5d0b-453c-87c6-4466dfb65a9b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
572
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'db353b96-5d0b-453c-87c6-4466dfb65a9b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:01.490 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2020/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:01.491 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:01.492 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:01.492 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:01.493 [print] Beheer PDOK
57
* print operateson
0
04:51:01.493 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:01.494 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:01.495 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:01.496 [print] "true";"true";"true"
76
* eval db.writeln('"db353b96-5d0b-453c-87c6-4466dfb65a9b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"db353b96-5d0b-453c-87c6-4466dfb65a9b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"db353b96-5d0b-453c-87c6-4466dfb65a9b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.150:82]
a7aeddf2-3b37-4668-9c75-de93d9326276
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:00.949 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a7aeddf2-3b37-4668-9c75-de93d9326276'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
567
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a7aeddf2-3b37-4668-9c75-de93d9326276'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:01.524 [print] https://service.pdok.nl/rvo/beschermdegebieden/natura2000/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:01.524 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:01.525 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:01.526 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:01.527 [print] Beheer PDOK
57
* print operateson
0
04:51:01.527 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=280ed37a-b8d2-4ac5-8567-04d84fad3a41#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:01.529 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:01.530 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:01.531 [print] "true";"true"
76
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.151:82]
8924a73f-0883-4432-af7e-f6823e098fdc
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:01.096 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8924a73f-0883-4432-af7e-f6823e098fdc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8924a73f-0883-4432-af7e-f6823e098fdc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:51:01.665 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2023/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:01.666 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:01.667 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:01.667 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:01.667 [print] Beheer PDOK
57
* print operateson
0
04:51:01.667 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:01.669 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:01.670 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:01.670 [print] "true";"true";"true"
76
* eval db.writeln('"8924a73f-0883-4432-af7e-f6823e098fdc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8924a73f-0883-4432-af7e-f6823e098fdc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8924a73f-0883-4432-af7e-f6823e098fdc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.152:82]
b77a753e-6da8-4df2-874d-4eddad9dd1a4
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:01.150 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b77a753e-6da8-4df2-874d-4eddad9dd1a4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b77a753e-6da8-4df2-874d-4eddad9dd1a4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:01.716 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2023/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:01.716 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:01.717 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:01.717 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:01.717 [print] Beheer PDOK
57
* print operateson
0
04:51:01.717 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:01.719 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:01.719 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:01.720 [print] "true";"true"
76
* eval db.writeln('"b77a753e-6da8-4df2-874d-4eddad9dd1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b77a753e-6da8-4df2-874d-4eddad9dd1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b77a753e-6da8-4df2-874d-4eddad9dd1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.153:82]
684e1468-ec03-43ee-9f52-94236f187d8d
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:01.500 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '684e1468-ec03-43ee-9f52-94236f187d8d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '684e1468-ec03-43ee-9f52-94236f187d8d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:02.077 [print] https://service.pdok.nl/cbs/statisticalunitsvector/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:02.077 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:02.078 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:02.078 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:02.079 [print] Beheer PDOK
57
* print operateson
0
04:51:02.079 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=10d1153e-778f-4995-9b6c-7c69b196cccb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:02.080 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:02.081 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de interoperable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:02.081 [print] "true";"true";"true"
76
* eval db.writeln('"684e1468-ec03-43ee-9f52-94236f187d8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"684e1468-ec03-43ee-9f52-94236f187d8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"684e1468-ec03-43ee-9f52-94236f187d8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.154:82]
823c5f01-5d11-481b-aa5f-e191d129365f
ms: 595
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:01.534 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '823c5f01-5d11-481b-aa5f-e191d129365f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
578
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '823c5f01-5d11-481b-aa5f-e191d129365f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:02.119 [print] https://service.pdok.nl/kadaster/gn/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
1
04:51:02.121 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:02.122 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:02.122 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:02.123 [print] Beheer PDOK
57
* print operateson
0
04:51:02.124 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:02.125 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:02.126 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:02.127 [print] "true";"true"
76
* eval db.writeln('"823c5f01-5d11-481b-aa5f-e191d129365f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"823c5f01-5d11-481b-aa5f-e191d129365f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"823c5f01-5d11-481b-aa5f-e191d129365f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.155:82]
ebd6ea46-ee7b-432f-83c4-058c889a790d
ms: 560
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:01.673 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ebd6ea46-ee7b-432f-83c4-058c889a790d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ebd6ea46-ee7b-432f-83c4-058c889a790d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:02.228 [print] http:\/\/services.inspire-provincies.nl\/EnvironmentalMonitoringFacilities\/services\/download_EF?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:02.229 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:02.229 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:02.229 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:02.230 [print] Interprovinciaal Overleg
57
* print operateson
0
04:51:02.230 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=c829abeb-bfac-4224-8332-e7a9a89e692e&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=fe45c540-e37d-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:02.232 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:02.232 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.0";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:02.233 [print] "false";"true";"true"
76
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.156:82]
150e3a18-44ed-43bd-b0fd-70ff7a3e6906
ms: 595
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:01.722 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '150e3a18-44ed-43bd-b0fd-70ff7a3e6906'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
584
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '150e3a18-44ed-43bd-b0fd-70ff7a3e6906'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:02.313 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2016/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:02.314 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:02.314 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:02.314 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:02.315 [print] Beheer PDOK
57
* print operateson
0
04:51:02.315 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:02.316 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:02.317 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:02.318 [print] "true";"true";"true"
76
* eval db.writeln('"150e3a18-44ed-43bd-b0fd-70ff7a3e6906","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"150e3a18-44ed-43bd-b0fd-70ff7a3e6906","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"150e3a18-44ed-43bd-b0fd-70ff7a3e6906","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.157:82]
1b2e3afd-e5dd-4d05-aeee-a75091a76beb
ms: 659
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:02.084 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
1
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
1
11
* def list = karate.read(idfile)
5
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1b2e3afd-e5dd-4d05-aeee-a75091a76beb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
640
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1b2e3afd-e5dd-4d05-aeee-a75091a76beb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:02.739 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2016/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:02.740 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:02.741 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:02.741 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:02.741 [print] Beheer PDOK
57
* print operateson
0
04:51:02.741 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:02.742 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:02.743 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:02.744 [print] "true";"true"
76
* eval db.writeln('"1b2e3afd-e5dd-4d05-aeee-a75091a76beb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1b2e3afd-e5dd-4d05-aeee-a75091a76beb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1b2e3afd-e5dd-4d05-aeee-a75091a76beb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.158:82]
1887e931-e1b9-4512-9ca2-61526439fd7b
ms: 634
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:02.135 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
2
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
2
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
2
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1887e931-e1b9-4512-9ca2-61526439fd7b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
617
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1887e931-e1b9-4512-9ca2-61526439fd7b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:02.765 [print] https://haleconnect.com/ows/services/org.292.6cef2128-a227-4aa7-bc74-0e3797644d51_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:02.765 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:02.766 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:02.766 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:02.767 [print] Rijkswaterstaat
57
* print operateson
0
04:51:02.767 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cfc800cb-e903-4364-9415-ddd3e0ecf49f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:02.768 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:02.769 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:02.769 [print] "true";"true"
76
* eval db.writeln('"1887e931-e1b9-4512-9ca2-61526439fd7b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1887e931-e1b9-4512-9ca2-61526439fd7b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1887e931-e1b9-4512-9ca2-61526439fd7b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.159:82]
f57bdee7-4027-4aa2-8312-4051b854be3c
ms: 592
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:02.236 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f57bdee7-4027-4aa2-8312-4051b854be3c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
579
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f57bdee7-4027-4aa2-8312-4051b854be3c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:02.823 [print] https://service.pdok.nl/rvo/schelpdierpercelen/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:02.823 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:02.824 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:02.824 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:02.825 [print] Beheer PDOK
57
* print operateson
0
04:51:02.825 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b4e95a-12d7-4c74-933c-cb267cfe0bcf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:02.826 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:02.827 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:02.828 [print] "true";"true"
76
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.160:82]
a57c1e86-becb-4e3f-b0ad-6d02cea5583d
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:02.320 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a57c1e86-becb-4e3f-b0ad-6d02cea5583d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a57c1e86-becb-4e3f-b0ad-6d02cea5583d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:02.878 [print] https://service.pdok.nl/provincies/zwemwaterkwaliteit-provinciaal-rijkswateren/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:02.879 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:02.880 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:02.880 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:02.880 [print] Beheer PDOK
57
* print operateson
0
04:51:02.881 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=df5ee213-e1bd-433b-80f7-4ea20f493ca8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:02.882 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:02.882 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:02.883 [print] "true";"true"
76
* eval db.writeln('"a57c1e86-becb-4e3f-b0ad-6d02cea5583d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a57c1e86-becb-4e3f-b0ad-6d02cea5583d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a57c1e86-becb-4e3f-b0ad-6d02cea5583d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.161:82]
6b608d4e-5628-4d59-97fc-0322c57357b2
ms: 596
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:02.746 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6b608d4e-5628-4d59-97fc-0322c57357b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6b608d4e-5628-4d59-97fc-0322c57357b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
25
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:51:03.335 [print] https://service.pdok.nl/rvo/schelpdierpercelen/wfs/v2_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:03.336 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:03.337 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:51:03.338 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:03.339 [print] Beheer PDOK
57
* print operateson
0
04:51:03.339 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fe0e1e5f-512f-4bb1-bbf8-4028d3dfa24f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:03.340 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:03.341 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:03.342 [print] "true";"true"
76
* eval db.writeln('"6b608d4e-5628-4d59-97fc-0322c57357b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6b608d4e-5628-4d59-97fc-0322c57357b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6b608d4e-5628-4d59-97fc-0322c57357b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.162:82]
3e6e285e-f0f0-4bb8-b14f-a9d1b9ea62a7
ms: 601
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:02.772 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3e6e285e-f0f0-4bb8-b14f-a9d1b9ea62a7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
589
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3e6e285e-f0f0-4bb8-b14f-a9d1b9ea62a7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:03.368 [print] https://service.pdok.nl/rvo/vogelrichtlijnsoorten/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:03.368 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:03.369 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:03.369 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:03.370 [print] Beheer PDOK
57
* print operateson
0
04:51:03.370 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fcefa13c-44e2-4953-b6d6-1ddceebc57fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:03.371 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:03.372 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:03.373 [print] "true";"true"
76
* eval db.writeln('"3e6e285e-f0f0-4bb8-b14f-a9d1b9ea62a7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3e6e285e-f0f0-4bb8-b14f-a9d1b9ea62a7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3e6e285e-f0f0-4bb8-b14f-a9d1b9ea62a7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.163:82]
fa09603b-d799-4ede-8243-1eb4f654ae75
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:02.830 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fa09603b-d799-4ede-8243-1eb4f654ae75'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fa09603b-d799-4ede-8243-1eb4f654ae75'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:51:03.386 [print] https://service.pdok.nl/cbs/wijkenbuurten/2022/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:03.387 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:03.388 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:03.388 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:03.389 [print] Beheer PDOK
57
* print operateson
0
04:51:03.389 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=70c52fd8-6b2e-42aa-873a-742711903243#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:03.390 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:03.391 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:03.392 [print] "true";"true";"true"
76
* eval db.writeln('"fa09603b-d799-4ede-8243-1eb4f654ae75","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fa09603b-d799-4ede-8243-1eb4f654ae75","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fa09603b-d799-4ede-8243-1eb4f654ae75","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.164:82]
e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:02.886 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:03.443 [print] https://service.pdok.nl/cbs/wijkenbuurten/2021/wms/v2_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:03.443 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:03.444 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:03.444 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:03.445 [print] Beheer PDOK
57
* print operateson
0
04:51:03.445 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:03.447 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:03.447 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:03.448 [print] "true";"true"
76
* eval db.writeln('"e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.165:82]
027e3f15-3b58-4570-97bb-779ce3ca947e
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:03.345 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '027e3f15-3b58-4570-97bb-779ce3ca947e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '027e3f15-3b58-4570-97bb-779ce3ca947e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:03.915 [print] https://service.pdok.nl/cbs/wijkenbuurten/2019/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:03.915 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:03.916 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:03.916 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:03.917 [print] Beheer PDOK
57
* print operateson
0
04:51:03.917 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:03.918 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:03.918 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:03.919 [print] "true";"true"
76
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.166:82]
7d533012-21ad-4a5b-a97e-a76988270273
ms: 584
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:03.376 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7d533012-21ad-4a5b-a97e-a76988270273'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
572
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7d533012-21ad-4a5b-a97e-a76988270273'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:03.955 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:03.955 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:03.956 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:03.956 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:03.957 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:03.957 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:03.958 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:03.959 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:03.960 [print] true
76
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.167:82]
e9ba7d7f-6cd1-4271-bce4-56432924b338
ms: 622
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:03.395 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e9ba7d7f-6cd1-4271-bce4-56432924b338'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
609
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e9ba7d7f-6cd1-4271-bce4-56432924b338'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:04.011 [print] https://service.pdok.nl/rvo/mosselzaadinvanginstallaties/wfs/v1_0?service=wfs&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:04.012 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:04.012 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:04.012 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:04.013 [print] Beheer PDOK
57
* print operateson
0
04:51:04.014 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a04afee4-47d5-45b7-b7a0-a6f86106af11#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:04.015 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:04.016 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:04.016 [print] "true";"true"
76
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.168:82]
c78a99eb-9ba3-4307-a21b-2a64ad5da039
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:03.451 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c78a99eb-9ba3-4307-a21b-2a64ad5da039'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c78a99eb-9ba3-4307-a21b-2a64ad5da039'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:04.022 [print] https://service.pdok.nl/rvo/mosselzaadinvanginstallaties/wms/v1_0?service=wms&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:04.023 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:04.024 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:04.024 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:04.025 [print] Beheer PDOK
57
* print operateson
0
04:51:04.025 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=a04afee4-47d5-45b7-b7a0-a6f86106af11#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:04.026 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:04.027 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:04.028 [print] "true";"true"
76
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.169:82]
3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d
ms: 590
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:03.922 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
578
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:04.506 [print] https://service.pdok.nl/cbs/wijkenbuurten/2020/wms/v2_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:04.507 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:04.507 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:04.507 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:04.508 [print] Beheer PDOK
57
* print operateson
0
04:51:04.509 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:04.510 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:04.510 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:04.511 [print] "true";"true"
76
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.170:82]
caeb52a3-cbaa-4e9b-a23e-d4dc0335b506
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:03.963 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'caeb52a3-cbaa-4e9b-a23e-d4dc0335b506'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'caeb52a3-cbaa-4e9b-a23e-d4dc0335b506'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:04.534 [print] https://service.pdok.nl/cbs/wijkenbuurten/2020/wfs/v2_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:04.535 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:04.536 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:04.536 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:04.537 [print] Beheer PDOK
57
* print operateson
0
04:51:04.537 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:04.539 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:04.539 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:04.540 [print] "true";"true"
76
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.171:82]
60dc9632-50c8-40b1-ac63-cd91b85352d2
ms: 637
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:04.019 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '60dc9632-50c8-40b1-ac63-cd91b85352d2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
625
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '60dc9632-50c8-40b1-ac63-cd91b85352d2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:04.651 [print] https://service.pdok.nl/cbs/wijkenbuurten/2021/wfs/v2_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:04.652 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:04.652 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:04.652 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:04.653 [print] Beheer PDOK
57
* print operateson
0
04:51:04.653 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:04.654 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:04.655 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:04.655 [print] "true";"true";"true"
76
* eval db.writeln('"60dc9632-50c8-40b1-ac63-cd91b85352d2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"60dc9632-50c8-40b1-ac63-cd91b85352d2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"60dc9632-50c8-40b1-ac63-cd91b85352d2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.172:82]
3d01c1ca-973c-4652-baa5-39458bb9e181
ms: 652
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:04.030 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3d01c1ca-973c-4652-baa5-39458bb9e181'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
635
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3d01c1ca-973c-4652-baa5-39458bb9e181'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:04.671 [print] https://service.pdok.nl/rvo/schelpdierpercelen/wms/v2_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
4
04:51:04.675 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:04.676 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:04.677 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:04.677 [print] Beheer PDOK
57
* print operateson
0
04:51:04.678 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fe0e1e5f-512f-4bb1-bbf8-4028d3dfa24f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:04.679 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:04.681 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:04.682 [print] "true";"true"
76
* eval db.writeln('"3d01c1ca-973c-4652-baa5-39458bb9e181","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3d01c1ca-973c-4652-baa5-39458bb9e181","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3d01c1ca-973c-4652-baa5-39458bb9e181","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.173:82]
3d143d7a-7599-4cda-bcc5-619b6201c47b
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:04.514 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3d143d7a-7599-4cda-bcc5-619b6201c47b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
544
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3d143d7a-7599-4cda-bcc5-619b6201c47b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:05.064 [print] https://service.pdok.nl/provincies/begrenzingen-vergunde-ontgrondingsgebieden-zand-grindwinning/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:05.065 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:05.065 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:05.066 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:05.066 [print] Beheer PDOK
57
* print operateson
0
04:51:05.066 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=58e7dc38-a498-4852-b4ef-908f5baa9056#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:05.067 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:05.068 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:05.069 [print] "true";"true"
76
* eval db.writeln('"3d143d7a-7599-4cda-bcc5-619b6201c47b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3d143d7a-7599-4cda-bcc5-619b6201c47b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
3
78
* eval db.writeln('"3d143d7a-7599-4cda-bcc5-619b6201c47b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.174:82]
a4bbba49-6d8c-408d-85cc-30c3fcffeaad
ms: 644
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:04.543 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a4bbba49-6d8c-408d-85cc-30c3fcffeaad'
0
27
And param elementsetname = 'full'
2
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
631
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a4bbba49-6d8c-408d-85cc-30c3fcffeaad'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:05.183 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2013/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:05.183 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:05.184 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:05.184 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:05.184 [print] Beheer PDOK
57
* print operateson
0
04:51:05.184 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:05.185 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:05.186 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:05.187 [print] "true";"true"
76
* eval db.writeln('"a4bbba49-6d8c-408d-85cc-30c3fcffeaad","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a4bbba49-6d8c-408d-85cc-30c3fcffeaad","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a4bbba49-6d8c-408d-85cc-30c3fcffeaad","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.175:82]
85c467c5-aff0-4509-9825-4965d9e962b9
ms: 630
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:04.659 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '85c467c5-aff0-4509-9825-4965d9e962b9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
619
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '85c467c5-aff0-4509-9825-4965d9e962b9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:05.284 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2012/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:05.285 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:05.285 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:05.285 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:05.286 [print] Beheer PDOK
57
* print operateson
0
04:51:05.286 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:05.288 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:05.288 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:05.289 [print] "true";"true";"true"
76
* eval db.writeln('"85c467c5-aff0-4509-9825-4965d9e962b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"85c467c5-aff0-4509-9825-4965d9e962b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"85c467c5-aff0-4509-9825-4965d9e962b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.176:82]
2c606ae3-0290-4369-8991-c6448111ff31
ms: 632
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:04.685 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2c606ae3-0290-4369-8991-c6448111ff31'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
618
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2c606ae3-0290-4369-8991-c6448111ff31'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:05.310 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2011/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:05.311 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:05.312 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:05.312 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:05.313 [print] Beheer PDOK
57
* print operateson
0
04:51:05.313 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:05.315 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:05.316 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:05.317 [print] "true";"true";"true"
76
* eval db.writeln('"2c606ae3-0290-4369-8991-c6448111ff31","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2c606ae3-0290-4369-8991-c6448111ff31","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2c606ae3-0290-4369-8991-c6448111ff31","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.177:82]
bef01bd9-ea47-4a7d-9c2c-1832894019a3
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:05.074 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bef01bd9-ea47-4a7d-9c2c-1832894019a3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bef01bd9-ea47-4a7d-9c2c-1832894019a3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:05.633 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2013/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:05.634 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:05.635 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:05.635 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:05.635 [print] Beheer PDOK
57
* print operateson
0
04:51:05.636 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:05.637 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:05.638 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:05.638 [print] "true";"true";"true"
76
* eval db.writeln('"bef01bd9-ea47-4a7d-9c2c-1832894019a3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bef01bd9-ea47-4a7d-9c2c-1832894019a3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bef01bd9-ea47-4a7d-9c2c-1832894019a3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.178:82]
2148f2fa-ab3c-44df-b66f-ac42ce6f1eed
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:05.190 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2148f2fa-ab3c-44df-b66f-ac42ce6f1eed'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2148f2fa-ab3c-44df-b66f-ac42ce6f1eed'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:05.753 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2011/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:05.753 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:05.754 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:05.754 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:05.755 [print] Beheer PDOK
57
* print operateson
0
04:51:05.755 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:05.756 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:05.756 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:05.757 [print] "true";"true"
76
* eval db.writeln('"2148f2fa-ab3c-44df-b66f-ac42ce6f1eed","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2148f2fa-ab3c-44df-b66f-ac42ce6f1eed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2148f2fa-ab3c-44df-b66f-ac42ce6f1eed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.179:82]
d9aeb5c3-ff2a-441b-bdfa-15c6c2c54a3b
ms: 542
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:05.291 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd9aeb5c3-ff2a-441b-bdfa-15c6c2c54a3b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
530
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd9aeb5c3-ff2a-441b-bdfa-15c6c2c54a3b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:05.828 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2012/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:05.828 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:05.829 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:05.829 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:05.830 [print] Beheer PDOK
57
* print operateson
0
04:51:05.830 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:05.831 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:05.832 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:05.833 [print] "true";"true"
76
* eval db.writeln('"d9aeb5c3-ff2a-441b-bdfa-15c6c2c54a3b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d9aeb5c3-ff2a-441b-bdfa-15c6c2c54a3b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d9aeb5c3-ff2a-441b-bdfa-15c6c2c54a3b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.180:82]
b4ae5b2c-f557-4a30-bbf2-c2681a544f32
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:05.319 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b4ae5b2c-f557-4a30-bbf2-c2681a544f32'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4ae5b2c-f557-4a30-bbf2-c2681a544f32'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:05.890 [print] https://service.pdok.nl/rws/vin/wfs/v1_0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:05.890 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:05.891 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:05.891 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:05.892 [print] Beheer PDOK
57
* print operateson
0
04:51:05.892 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:05.893 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services";"";"";""
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:05.894 [print] "Conform verordening";"De service voldoet aan de requirements van de invocable conformance class";"Conform technische specificatie";"";"";""
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:05.895 [print] "true";"true";"true"
76
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.181:82]
598c4109-21d2-4a6c-b083-9975a6736849
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:05.641 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '598c4109-21d2-4a6c-b083-9975a6736849'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
540
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '598c4109-21d2-4a6c-b083-9975a6736849'
25
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:06.215 [print] https:\/\/service.pdok.nl\/rws\/nwbvaarwegen\/wms\/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:06.216 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:06.217 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:06.217 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:06.218 [print] Beheer PDOK
57
* print operateson
0
04:51:06.219 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=00d8c7c8-98ff-4b06-8f53-b44216e6e75c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:06.221 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:06.222 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:06.223 [print] "true";"true"
76
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.182:82]
171b28f6-7ee7-46f9-b3b3-06d0baaa33db
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:05.760 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '171b28f6-7ee7-46f9-b3b3-06d0baaa33db'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
540
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '171b28f6-7ee7-46f9-b3b3-06d0baaa33db'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:06.307 [print] https:\/\/service.pdok.nl\/cbs\/pd\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:06.307 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:06.308 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:06.308 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:06.309 [print] Beheer PDOK
57
* print operateson
0
04:51:06.309 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:06.311 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:06.311 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:06.312 [print] "true";"true"
76
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.183:82]
16830927-0127-48b1-b442-55882378cedf
ms: 584
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:05.836 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '16830927-0127-48b1-b442-55882378cedf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '16830927-0127-48b1-b442-55882378cedf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:06.412 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2014/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:06.413 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:06.414 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:06.414 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
3
56
* print organisationpath
0
04:51:06.417 [print] Beheer PDOK
57
* print operateson
0
04:51:06.417 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:06.418 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:06.419 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:06.420 [print] "true";"true"
76
* eval db.writeln('"16830927-0127-48b1-b442-55882378cedf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"16830927-0127-48b1-b442-55882378cedf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"16830927-0127-48b1-b442-55882378cedf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.184:82]
52e5cf69-fdef-4092-8ee0-d7103b156bb5
ms: 580
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:05.897 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '52e5cf69-fdef-4092-8ee0-d7103b156bb5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
567
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '52e5cf69-fdef-4092-8ee0-d7103b156bb5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:06.472 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2015/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:06.473 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:06.473 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:06.474 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:06.474 [print] Beheer PDOK
57
* print operateson
0
04:51:06.475 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:06.476 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:06.477 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:06.478 [print] "true";"true"
76
* eval db.writeln('"52e5cf69-fdef-4092-8ee0-d7103b156bb5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"52e5cf69-fdef-4092-8ee0-d7103b156bb5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"52e5cf69-fdef-4092-8ee0-d7103b156bb5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.185:82]
d4bb0eb0-fdaf-4ce2-a005-e0b3686cb38e
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:06.227 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd4bb0eb0-fdaf-4ce2-a005-e0b3686cb38e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd4bb0eb0-fdaf-4ce2-a005-e0b3686cb38e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:06.792 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2016/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:06.793 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:06.793 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:06.794 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:06.794 [print] Beheer PDOK
57
* print operateson
0
04:51:06.794 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:06.795 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:06.796 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:06.797 [print] "true";"true";"true"
76
* eval db.writeln('"d4bb0eb0-fdaf-4ce2-a005-e0b3686cb38e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d4bb0eb0-fdaf-4ce2-a005-e0b3686cb38e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
3
78
* eval db.writeln('"d4bb0eb0-fdaf-4ce2-a005-e0b3686cb38e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.186:82]
8891985c-5178-4a9e-bb76-21625a9fb1ef
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:06.315 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8891985c-5178-4a9e-bb76-21625a9fb1ef'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
540
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8891985c-5178-4a9e-bb76-21625a9fb1ef'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:06.863 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2015/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:06.863 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:06.864 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:06.864 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:06.865 [print] Beheer PDOK
57
* print operateson
0
04:51:06.865 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:06.866 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:06.867 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:06.868 [print] "true";"true";"true"
76
* eval db.writeln('"8891985c-5178-4a9e-bb76-21625a9fb1ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8891985c-5178-4a9e-bb76-21625a9fb1ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8891985c-5178-4a9e-bb76-21625a9fb1ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.187:82]
a25cbbdf-544e-4bc3-b6a9-2544a574d54a
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:06.423 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a25cbbdf-544e-4bc3-b6a9-2544a574d54a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a25cbbdf-544e-4bc3-b6a9-2544a574d54a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:06.995 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2014/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:06.996 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:06.997 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:06.997 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:06.997 [print] Beheer PDOK
57
* print operateson
0
04:51:06.997 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:06.998 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:06.999 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:07.000 [print] "true";"true";"true"
76
* eval db.writeln('"a25cbbdf-544e-4bc3-b6a9-2544a574d54a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a25cbbdf-544e-4bc3-b6a9-2544a574d54a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a25cbbdf-544e-4bc3-b6a9-2544a574d54a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.188:82]
add7e618-78e7-4189-abc8-a64becee7a60
ms: 586
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:06.481 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'add7e618-78e7-4189-abc8-a64becee7a60'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'add7e618-78e7-4189-abc8-a64becee7a60'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:07.059 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2018/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:07.060 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:07.061 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:07.061 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:07.062 [print] Beheer PDOK
57
* print operateson
1
04:51:07.063 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:07.065 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:07.066 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:07.067 [print] "true";"true"
76
* eval db.writeln('"add7e618-78e7-4189-abc8-a64becee7a60","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"add7e618-78e7-4189-abc8-a64becee7a60","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"add7e618-78e7-4189-abc8-a64becee7a60","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.189:82]
ca3f849f-b303-4757-aa30-e5cdd692e07a
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:06.803 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ca3f849f-b303-4757-aa30-e5cdd692e07a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
540
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ca3f849f-b303-4757-aa30-e5cdd692e07a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:07.350 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2017/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:07.351 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:07.351 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:07.352 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:07.352 [print] Beheer PDOK
57
* print operateson
0
04:51:07.352 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:07.354 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:07.355 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:07.356 [print] "true";"true";"true"
76
* eval db.writeln('"ca3f849f-b303-4757-aa30-e5cdd692e07a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ca3f849f-b303-4757-aa30-e5cdd692e07a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ca3f849f-b303-4757-aa30-e5cdd692e07a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.190:82]
27c18143-e51a-4ecf-858f-b6563cbc5a25
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:06.870 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '27c18143-e51a-4ecf-858f-b6563cbc5a25'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
555
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '27c18143-e51a-4ecf-858f-b6563cbc5a25'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:51:07.433 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2018/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:07.433 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:07.434 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:07.435 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:07.436 [print] Beheer PDOK
57
* print operateson
0
04:51:07.436 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:07.437 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:07.438 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:07.439 [print] "true";"true";"true"
76
* eval db.writeln('"27c18143-e51a-4ecf-858f-b6563cbc5a25","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"27c18143-e51a-4ecf-858f-b6563cbc5a25","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"27c18143-e51a-4ecf-858f-b6563cbc5a25","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.191:82]
0f87998b-e629-4ee3-96ad-7c48c3d318bc
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:07.004 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0f87998b-e629-4ee3-96ad-7c48c3d318bc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0f87998b-e629-4ee3-96ad-7c48c3d318bc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:07.572 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2017/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:07.573 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:07.573 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:07.573 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:07.574 [print] Beheer PDOK
57
* print operateson
0
04:51:07.574 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:07.575 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:07.575 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:07.576 [print] "true";"true"
76
* eval db.writeln('"0f87998b-e629-4ee3-96ad-7c48c3d318bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0f87998b-e629-4ee3-96ad-7c48c3d318bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0f87998b-e629-4ee3-96ad-7c48c3d318bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.192:82]
557f39e4-faa8-4b9b-a6fa-6b929b67e0ae
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:07.070 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '557f39e4-faa8-4b9b-a6fa-6b929b67e0ae'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '557f39e4-faa8-4b9b-a6fa-6b929b67e0ae'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:07.626 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2016/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:07.626 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:07.627 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:07.627 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:07.628 [print] Beheer PDOK
57
* print operateson
0
04:51:07.628 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:07.629 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:07.630 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:07.630 [print] "true";"true"
76
* eval db.writeln('"557f39e4-faa8-4b9b-a6fa-6b929b67e0ae","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"557f39e4-faa8-4b9b-a6fa-6b929b67e0ae","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"557f39e4-faa8-4b9b-a6fa-6b929b67e0ae","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.193:82]
008d85d1-460d-46f6-9af4-98afdedbc4dc
ms: 583
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:07.358 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '008d85d1-460d-46f6-9af4-98afdedbc4dc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '008d85d1-460d-46f6-9af4-98afdedbc4dc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:07.935 [print] https://service.pdok.nl/cbs/pd/wfs/v1_0?service=WFS&request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:07.936 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:07.937 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:07.937 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:07.938 [print] Beheer PDOK
57
* print operateson
0
04:51:07.938 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:07.939 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs .";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:07.940 [print] "Deze service voldoet aan specificaties voor spatial data services";"De service voldoet aan de requirements van de interoperable conformance class.";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:07.941 [print] "true";"true";"true"
76
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.194:82]
8a1d1e07-ad95-40a4-adb1-23a3504543a4
ms: 607
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:07.443 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8a1d1e07-ad95-40a4-adb1-23a3504543a4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
596
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8a1d1e07-ad95-40a4-adb1-23a3504543a4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:08.045 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2021/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:08.046 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:08.046 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:08.046 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:08.047 [print] Beheer PDOK
57
* print operateson
0
04:51:08.047 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:08.048 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:08.049 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:08.050 [print] "true";"true"
76
* eval db.writeln('"8a1d1e07-ad95-40a4-adb1-23a3504543a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8a1d1e07-ad95-40a4-adb1-23a3504543a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8a1d1e07-ad95-40a4-adb1-23a3504543a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.195:82]
4074b3c3-ca85-45ad-bc0d-b5fca8540c0a
ms: 613
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:07.579 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4074b3c3-ca85-45ad-bc0d-b5fca8540c0a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
599
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4074b3c3-ca85-45ad-bc0d-b5fca8540c0a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:08.183 [print] https://service.pdok.nl/rws/vin/wms/v1_0?request=GetCapabilities&service=WMS&version=1.3.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:08.184 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:08.185 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:08.185 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
4
56
* print organisationpath
0
04:51:08.189 [print] Beheer PDOK
57
* print operateson
0
04:51:08.189 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:08.190 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:08.191 [print] "Conform verordening";"Conform technische specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:08.191 [print] "true";"true"
76
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.196:82]
ee9e7a1c-b04a-45a9-92a2-99b2ef508529
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:07.633 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ee9e7a1c-b04a-45a9-92a2-99b2ef508529'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
578
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ee9e7a1c-b04a-45a9-92a2-99b2ef508529'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:08.217 [print] https://service.pdok.nl/rvo/vogelrichtlijnsoorten/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:08.218 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:08.218 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:08.218 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:08.219 [print] Beheer PDOK
57
* print operateson
0
04:51:08.219 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=fcefa13c-44e2-4953-b6d6-1ddceebc57fc#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=fcefa13c-44e2-4953-b6d6-1ddceebc57fc#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:08.220 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:08.221 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:08.221 [print] "true";"true";"true"
76
* eval db.writeln('"ee9e7a1c-b04a-45a9-92a2-99b2ef508529","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ee9e7a1c-b04a-45a9-92a2-99b2ef508529","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ee9e7a1c-b04a-45a9-92a2-99b2ef508529","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.197:82]
710187ec-2caf-4b24-9921-ca80ec7e5015
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:07.944 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '710187ec-2caf-4b24-9921-ca80ec7e5015'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '710187ec-2caf-4b24-9921-ca80ec7e5015'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:08.499 [print] https://service.pdok.nl/rvo/vogelrichtlijngebieds/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:08.500 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:08.501 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:08.501 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:08.502 [print] Beheer PDOK
57
* print operateson
0
04:51:08.502 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cbeaebc3-815a-48af-a978-0e16892865fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:08.503 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:08.504 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:08.505 [print] "true";"true";"true"
76
* eval db.writeln('"710187ec-2caf-4b24-9921-ca80ec7e5015","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"710187ec-2caf-4b24-9921-ca80ec7e5015","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"710187ec-2caf-4b24-9921-ca80ec7e5015","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.198:82]
6aa19280-e67c-4184-b916-6d47e9414bbc
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:08.052 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6aa19280-e67c-4184-b916-6d47e9414bbc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6aa19280-e67c-4184-b916-6d47e9414bbc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:08.620 [print] https://service.pdok.nl/rvo/vogelrichtlijngebieds/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:08.620 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:08.621 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:08.621 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:08.621 [print] Beheer PDOK
57
* print operateson
0
04:51:08.621 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cbeaebc3-815a-48af-a978-0e16892865fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:08.622 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:08.623 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:08.624 [print] "true";"true"
76
* eval db.writeln('"6aa19280-e67c-4184-b916-6d47e9414bbc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6aa19280-e67c-4184-b916-6d47e9414bbc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6aa19280-e67c-4184-b916-6d47e9414bbc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.199:82]
78e71ad9-4f1f-4eab-a82a-99127e50e5a1
ms: 551
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:08.194 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '78e71ad9-4f1f-4eab-a82a-99127e50e5a1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
540
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '78e71ad9-4f1f-4eab-a82a-99127e50e5a1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:08.741 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2020/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:08.741 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:08.742 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:08.742 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:08.742 [print] Beheer PDOK
57
* print operateson
0
04:51:08.742 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:08.744 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:08.744 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:08.745 [print] "true";"true"
76
* eval db.writeln('"78e71ad9-4f1f-4eab-a82a-99127e50e5a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"78e71ad9-4f1f-4eab-a82a-99127e50e5a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"78e71ad9-4f1f-4eab-a82a-99127e50e5a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.200:82]
4bb1a3a9-22a2-47b0-85e9-72b913c07ecb
ms: 595
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:08.224 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4bb1a3a9-22a2-47b0-85e9-72b913c07ecb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4bb1a3a9-22a2-47b0-85e9-72b913c07ecb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:08.793 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2019/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:08.793 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:08.794 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:08.794 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:08.795 [print] Beheer PDOK
57
* print operateson
0
04:51:08.795 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:08.796 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:08.796 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
21
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:08.818 [print] "true";"true"
76
* eval db.writeln('"4bb1a3a9-22a2-47b0-85e9-72b913c07ecb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4bb1a3a9-22a2-47b0-85e9-72b913c07ecb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4bb1a3a9-22a2-47b0-85e9-72b913c07ecb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.201:82]
575569de-c5d1-4250-991c-4c7ef0b8d3f7
ms: 579
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:08.508 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '575569de-c5d1-4250-991c-4c7ef0b8d3f7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '575569de-c5d1-4250-991c-4c7ef0b8d3f7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:09.080 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2020/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:09.081 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:09.082 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:09.082 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:09.083 [print] Beheer PDOK
57
* print operateson
0
04:51:09.083 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:09.084 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:09.086 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:09.087 [print] "true";"true";"true"
76
* eval db.writeln('"575569de-c5d1-4250-991c-4c7ef0b8d3f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"575569de-c5d1-4250-991c-4c7ef0b8d3f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"575569de-c5d1-4250-991c-4c7ef0b8d3f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.202:82]
e5b2dc19-0286-422c-933e-6fb692513a25
ms: 596
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:08.626 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e5b2dc19-0286-422c-933e-6fb692513a25'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
578
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e5b2dc19-0286-422c-933e-6fb692513a25'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:09.212 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2019/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:09.213 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
3
04:51:09.216 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:09.217 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:09.218 [print] Beheer PDOK
57
* print operateson
0
04:51:09.218 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:09.220 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:09.221 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:09.222 [print] "true";"true";"true"
76
* eval db.writeln('"e5b2dc19-0286-422c-933e-6fb692513a25","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e5b2dc19-0286-422c-933e-6fb692513a25","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e5b2dc19-0286-422c-933e-6fb692513a25","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.203:82]
e79ffdbb-f5cf-44ce-b5c2-ff4cbdf0abf4
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:08.748 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e79ffdbb-f5cf-44ce-b5c2-ff4cbdf0abf4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e79ffdbb-f5cf-44ce-b5c2-ff4cbdf0abf4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:09.303 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2000/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:09.304 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:09.305 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:09.305 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:09.306 [print] Beheer PDOK
57
* print operateson
0
04:51:09.306 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:09.307 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
5
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:09.312 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:09.313 [print] "true";"true";"true"
76
* eval db.writeln('"e79ffdbb-f5cf-44ce-b5c2-ff4cbdf0abf4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e79ffdbb-f5cf-44ce-b5c2-ff4cbdf0abf4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e79ffdbb-f5cf-44ce-b5c2-ff4cbdf0abf4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.204:82]
45f9ddb3-8929-4c6c-aa99-dc99f7cedb04
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:08.834 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
8
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '45f9ddb3-8929-4c6c-aa99-dc99f7cedb04'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '45f9ddb3-8929-4c6c-aa99-dc99f7cedb04'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:09.402 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2021/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:09.402 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:09.403 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:09.403 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:09.404 [print] Beheer PDOK
57
* print operateson
0
04:51:09.404 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:09.405 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:09.406 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:09.407 [print] "true";"true"
76
* eval db.writeln('"45f9ddb3-8929-4c6c-aa99-dc99f7cedb04","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"45f9ddb3-8929-4c6c-aa99-dc99f7cedb04","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"45f9ddb3-8929-4c6c-aa99-dc99f7cedb04","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.205:82]
602ad34d-fe51-48f4-8224-95835144cf68
ms: 565
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:09.090 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '602ad34d-fe51-48f4-8224-95835144cf68'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
551
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '602ad34d-fe51-48f4-8224-95835144cf68'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:09.648 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2000/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:09.649 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:09.649 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:09.650 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:09.651 [print] Beheer PDOK
57
* print operateson
0
04:51:09.651 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:09.653 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:09.654 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:09.654 [print] "true";"true"
76
* eval db.writeln('"602ad34d-fe51-48f4-8224-95835144cf68","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"602ad34d-fe51-48f4-8224-95835144cf68","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"602ad34d-fe51-48f4-8224-95835144cf68","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.206:82]
783f5c73-193c-43d5-a158-3ff4db4c77c0
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:09.226 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '783f5c73-193c-43d5-a158-3ff4db4c77c0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
546
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '783f5c73-193c-43d5-a158-3ff4db4c77c0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:09.779 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2001/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:09.780 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:09.780 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:09.781 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:09.781 [print] Beheer PDOK
57
* print operateson
0
04:51:09.781 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:09.783 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:09.783 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:09.784 [print] "true";"true";"true"
76
* eval db.writeln('"783f5c73-193c-43d5-a158-3ff4db4c77c0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"783f5c73-193c-43d5-a158-3ff4db4c77c0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"783f5c73-193c-43d5-a158-3ff4db4c77c0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.207:82]
ecd65d6f-0249-4c60-85b9-5fd87fbe60c8
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:09.316 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ecd65d6f-0249-4c60-85b9-5fd87fbe60c8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
566
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ecd65d6f-0249-4c60-85b9-5fd87fbe60c8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:09.890 [print] https://service.pdok.nl/cbs/wijkenbuurten/2022/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:09.890 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:09.891 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:09.891 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:09.891 [print] Beheer PDOK
57
* print operateson
0
04:51:09.891 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=70c52fd8-6b2e-42aa-873a-742711903243#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:09.892 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:09.893 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:09.894 [print] "true";"true"
76
* eval db.writeln('"ecd65d6f-0249-4c60-85b9-5fd87fbe60c8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ecd65d6f-0249-4c60-85b9-5fd87fbe60c8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ecd65d6f-0249-4c60-85b9-5fd87fbe60c8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.208:82]
b78d50ac-663f-4471-8678-acdd33723f39
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:09.409 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b78d50ac-663f-4471-8678-acdd33723f39'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b78d50ac-663f-4471-8678-acdd33723f39'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:09.972 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2008/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:09.973 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:09.974 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:09.974 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:09.975 [print] Beheer PDOK
57
* print operateson
0
04:51:09.975 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:09.977 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:09.978 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:09.979 [print] "true";"true"
76
* eval db.writeln('"b78d50ac-663f-4471-8678-acdd33723f39","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b78d50ac-663f-4471-8678-acdd33723f39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b78d50ac-663f-4471-8678-acdd33723f39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.209:82]
5d4b2ced-bc3c-4941-a89d-f5dfc618effb
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:09.657 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5d4b2ced-bc3c-4941-a89d-f5dfc618effb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5d4b2ced-bc3c-4941-a89d-f5dfc618effb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:10.213 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2007/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:10.214 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:10.214 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:10.214 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:10.215 [print] Beheer PDOK
57
* print operateson
0
04:51:10.215 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:10.216 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:10.217 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:10.218 [print] "true";"true"
76
* eval db.writeln('"5d4b2ced-bc3c-4941-a89d-f5dfc618effb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5d4b2ced-bc3c-4941-a89d-f5dfc618effb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5d4b2ced-bc3c-4941-a89d-f5dfc618effb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.210:82]
fbf5db58-bc1a-4767-9486-e028a2b69821
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:09.787 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fbf5db58-bc1a-4767-9486-e028a2b69821'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fbf5db58-bc1a-4767-9486-e028a2b69821'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:10.343 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2008/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:10.344 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:10.344 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:10.344 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:10.345 [print] Beheer PDOK
57
* print operateson
0
04:51:10.345 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:10.346 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:10.347 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:10.347 [print] "true";"true";"true"
76
* eval db.writeln('"fbf5db58-bc1a-4767-9486-e028a2b69821","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fbf5db58-bc1a-4767-9486-e028a2b69821","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fbf5db58-bc1a-4767-9486-e028a2b69821","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.211:82]
394a5d9f-e98c-44aa-abfa-a57fd67aec6c
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:09.896 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '394a5d9f-e98c-44aa-abfa-a57fd67aec6c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '394a5d9f-e98c-44aa-abfa-a57fd67aec6c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:10.451 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2006/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:10.451 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:10.452 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:10.452 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
04:51:10.454 [print] Beheer PDOK
57
* print operateson
0
04:51:10.454 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:10.456 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:10.457 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:10.458 [print] "true";"true"
76
* eval db.writeln('"394a5d9f-e98c-44aa-abfa-a57fd67aec6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"394a5d9f-e98c-44aa-abfa-a57fd67aec6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"394a5d9f-e98c-44aa-abfa-a57fd67aec6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.212:82]
55a77659-2021-4805-b4ee-4d9d123d8a52
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:09.981 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '55a77659-2021-4805-b4ee-4d9d123d8a52'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '55a77659-2021-4805-b4ee-4d9d123d8a52'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:10.545 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2007/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:10.546 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:10.547 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:10.547 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:10.548 [print] Beheer PDOK
57
* print operateson
0
04:51:10.549 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:10.550 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:10.552 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:10.553 [print] "true";"true";"true"
76
* eval db.writeln('"55a77659-2021-4805-b4ee-4d9d123d8a52","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"55a77659-2021-4805-b4ee-4d9d123d8a52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"55a77659-2021-4805-b4ee-4d9d123d8a52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.213:82]
0c140d6b-91f2-4ebf-8bcf-e016f928f6ad
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:10.220 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0c140d6b-91f2-4ebf-8bcf-e016f928f6ad'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
545
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0c140d6b-91f2-4ebf-8bcf-e016f928f6ad'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:10.773 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2010/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:10.774 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:10.775 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:10.775 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:10.775 [print] Beheer PDOK
57
* print operateson
0
04:51:10.775 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:10.777 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:10.777 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:10.778 [print] "true";"true";"true"
76
* eval db.writeln('"0c140d6b-91f2-4ebf-8bcf-e016f928f6ad","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0c140d6b-91f2-4ebf-8bcf-e016f928f6ad","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0c140d6b-91f2-4ebf-8bcf-e016f928f6ad","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.214:82]
3c71cf77-fea5-4cc9-96db-66c5cc301a4e
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:10.350 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3c71cf77-fea5-4cc9-96db-66c5cc301a4e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3c71cf77-fea5-4cc9-96db-66c5cc301a4e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:10.926 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2011/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:10.926 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:10.927 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:10.927 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:10.928 [print] Beheer PDOK
57
* print operateson
0
04:51:10.928 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:10.929 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:10.930 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:10.931 [print] "true";"true";"true"
76
* eval db.writeln('"3c71cf77-fea5-4cc9-96db-66c5cc301a4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3c71cf77-fea5-4cc9-96db-66c5cc301a4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3c71cf77-fea5-4cc9-96db-66c5cc301a4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.215:82]
f05c3641-0d6b-4988-9757-ec42e80f3688
ms: 618
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:10.461 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f05c3641-0d6b-4988-9757-ec42e80f3688'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
603
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f05c3641-0d6b-4988-9757-ec42e80f3688'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:11.071 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2012/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:11.072 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:11.073 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:11.073 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:11.074 [print] Beheer PDOK
57
* print operateson
0
04:51:11.075 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:11.076 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:11.077 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:11.078 [print] "true";"true";"true"
76
* eval db.writeln('"f05c3641-0d6b-4988-9757-ec42e80f3688","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f05c3641-0d6b-4988-9757-ec42e80f3688","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f05c3641-0d6b-4988-9757-ec42e80f3688","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.216:82]
512b60f2-6ebc-47c1-8683-215bd72c2294
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:10.555 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '512b60f2-6ebc-47c1-8683-215bd72c2294'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
567
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '512b60f2-6ebc-47c1-8683-215bd72c2294'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:11.130 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2010/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:11.131 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:11.132 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:11.132 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:11.133 [print] Beheer PDOK
57
* print operateson
0
04:51:11.134 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:11.135 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:11.136 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:11.137 [print] "true";"true"
76
* eval db.writeln('"512b60f2-6ebc-47c1-8683-215bd72c2294","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"512b60f2-6ebc-47c1-8683-215bd72c2294","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"512b60f2-6ebc-47c1-8683-215bd72c2294","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.217:82]
499365ec-e001-45ab-9c68-1d80272e9192
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:10.781 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '499365ec-e001-45ab-9c68-1d80272e9192'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '499365ec-e001-45ab-9c68-1d80272e9192'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:11.348 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2011/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:11.349 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:11.349 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:11.349 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:11.350 [print] Beheer PDOK
57
* print operateson
0
04:51:11.350 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:11.351 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:11.352 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:11.353 [print] "true";"true"
76
* eval db.writeln('"499365ec-e001-45ab-9c68-1d80272e9192","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"499365ec-e001-45ab-9c68-1d80272e9192","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"499365ec-e001-45ab-9c68-1d80272e9192","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.218:82]
371b7fc3-8a7d-4fb4-b9a6-0159b6574a7a
ms: 579
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:10.933 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '371b7fc3-8a7d-4fb4-b9a6-0159b6574a7a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
566
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '371b7fc3-8a7d-4fb4-b9a6-0159b6574a7a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:11.506 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2012/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:11.506 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:11.507 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:11.507 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:11.508 [print] Beheer PDOK
57
* print operateson
0
04:51:11.508 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:11.510 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:11.510 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:11.511 [print] "true";"true"
76
* eval db.writeln('"371b7fc3-8a7d-4fb4-b9a6-0159b6574a7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"371b7fc3-8a7d-4fb4-b9a6-0159b6574a7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"371b7fc3-8a7d-4fb4-b9a6-0159b6574a7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.219:82]
adcc5ad7-d3b3-445a-9033-1274cc7f0d61
ms: 617
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:11.081 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'adcc5ad7-d3b3-445a-9033-1274cc7f0d61'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
601
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adcc5ad7-d3b3-445a-9033-1274cc7f0d61'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:11.692 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2010/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:11.692 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:11.693 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:11.693 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:11.694 [print] Beheer PDOK
57
* print operateson
0
04:51:11.695 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:11.696 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:11.697 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:11.698 [print] "true";"true";"true"
76
* eval db.writeln('"adcc5ad7-d3b3-445a-9033-1274cc7f0d61","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"adcc5ad7-d3b3-445a-9033-1274cc7f0d61","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"adcc5ad7-d3b3-445a-9033-1274cc7f0d61","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.220:82]
b6d2d023-92d9-40a2-a020-5cc2275a450f
ms: 580
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:11.141 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b6d2d023-92d9-40a2-a020-5cc2275a450f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
567
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b6d2d023-92d9-40a2-a020-5cc2275a450f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:11.715 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2009/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:11.716 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:11.717 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:11.717 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:11.717 [print] Beheer PDOK
57
* print operateson
0
04:51:11.717 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:11.719 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:11.720 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:11.721 [print] "true";"true"
76
* eval db.writeln('"b6d2d023-92d9-40a2-a020-5cc2275a450f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b6d2d023-92d9-40a2-a020-5cc2275a450f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b6d2d023-92d9-40a2-a020-5cc2275a450f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.221:82]
21226249-b3cc-4ed8-be7c-83298c72d1b5
ms: 647
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:11.355 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '21226249-b3cc-4ed8-be7c-83298c72d1b5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
633
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '21226249-b3cc-4ed8-be7c-83298c72d1b5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:11.996 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2010/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:11.997 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:11.998 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:11.998 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:11.999 [print] Beheer PDOK
57
* print operateson
0
04:51:11.999 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:12.000 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:12.001 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:12.002 [print] "true";"true"
76
* eval db.writeln('"21226249-b3cc-4ed8-be7c-83298c72d1b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"21226249-b3cc-4ed8-be7c-83298c72d1b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"21226249-b3cc-4ed8-be7c-83298c72d1b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.222:82]
a252d8b4-23d3-452c-8a24-4cd65681c424
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:11.514 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a252d8b4-23d3-452c-8a24-4cd65681c424'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a252d8b4-23d3-452c-8a24-4cd65681c424'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:12.078 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2009/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:12.079 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:12.080 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:12.081 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:12.082 [print] Beheer PDOK
57
* print operateson
0
04:51:12.082 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:12.084 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:12.085 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:12.086 [print] "true";"true";"true"
76
* eval db.writeln('"a252d8b4-23d3-452c-8a24-4cd65681c424","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a252d8b4-23d3-452c-8a24-4cd65681c424","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a252d8b4-23d3-452c-8a24-4cd65681c424","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.223:82]
c39f6bad-579b-49c2-95e4-249fe997f0cb
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:11.701 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c39f6bad-579b-49c2-95e4-249fe997f0cb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
551
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c39f6bad-579b-49c2-95e4-249fe997f0cb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:12.260 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2004/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:12.261 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:12.262 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:12.262 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:12.263 [print] Beheer PDOK
57
* print operateson
0
04:51:12.263 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:12.265 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:12.266 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:12.267 [print] "true";"true";"true"
76
* eval db.writeln('"c39f6bad-579b-49c2-95e4-249fe997f0cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c39f6bad-579b-49c2-95e4-249fe997f0cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c39f6bad-579b-49c2-95e4-249fe997f0cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.224:82]
7e914f11-b775-4a12-91f1-459627ccdf5f
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:11.724 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7e914f11-b775-4a12-91f1-459627ccdf5f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7e914f11-b775-4a12-91f1-459627ccdf5f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:12.293 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2006/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:12.293 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:12.294 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:12.294 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:12.295 [print] Beheer PDOK
57
* print operateson
0
04:51:12.295 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:12.296 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:12.297 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:12.298 [print] "true";"true";"true"
76
* eval db.writeln('"7e914f11-b775-4a12-91f1-459627ccdf5f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7e914f11-b775-4a12-91f1-459627ccdf5f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7e914f11-b775-4a12-91f1-459627ccdf5f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.225:82]
75c92c7d-1d04-4e4c-96da-1286b886a92e
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:12.005 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '75c92c7d-1d04-4e4c-96da-1286b886a92e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '75c92c7d-1d04-4e4c-96da-1286b886a92e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:12.562 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2005/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:12.563 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:12.564 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:12.564 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:12.564 [print] Beheer PDOK
57
* print operateson
0
04:51:12.564 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:12.566 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:12.566 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:12.567 [print] "true";"true";"true"
76
* eval db.writeln('"75c92c7d-1d04-4e4c-96da-1286b886a92e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"75c92c7d-1d04-4e4c-96da-1286b886a92e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"75c92c7d-1d04-4e4c-96da-1286b886a92e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.226:82]
d1f7333f-04d7-4062-b469-847c47846cd7
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:12.089 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd1f7333f-04d7-4062-b469-847c47846cd7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd1f7333f-04d7-4062-b469-847c47846cd7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:12.651 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2004/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:12.651 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:12.652 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:12.653 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:12.654 [print] Beheer PDOK
57
* print operateson
0
04:51:12.654 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:12.656 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:12.657 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:12.658 [print] "true";"true"
76
* eval db.writeln('"d1f7333f-04d7-4062-b469-847c47846cd7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d1f7333f-04d7-4062-b469-847c47846cd7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d1f7333f-04d7-4062-b469-847c47846cd7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.227:82]
cecbe171-6ee7-427d-8658-e764049644cc
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:12.270 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cecbe171-6ee7-427d-8658-e764049644cc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
545
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cecbe171-6ee7-427d-8658-e764049644cc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:12.822 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2005/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:12.823 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:12.823 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:12.824 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:12.824 [print] Beheer PDOK
57
* print operateson
0
04:51:12.825 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:12.826 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:12.827 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:12.828 [print] "true";"true"
76
* eval db.writeln('"cecbe171-6ee7-427d-8658-e764049644cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cecbe171-6ee7-427d-8658-e764049644cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cecbe171-6ee7-427d-8658-e764049644cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.228:82]
6776cafe-a7a9-45af-b370-6a8f638a12d5
ms: 560
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:12.300 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6776cafe-a7a9-45af-b370-6a8f638a12d5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
545
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6776cafe-a7a9-45af-b370-6a8f638a12d5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:51:12.852 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2015/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:12.853 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:12.854 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:12.854 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:12.855 [print] Beheer PDOK
57
* print operateson
0
04:51:12.856 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:12.858 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:12.859 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:12.860 [print] "true";"true"
76
* eval db.writeln('"6776cafe-a7a9-45af-b370-6a8f638a12d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6776cafe-a7a9-45af-b370-6a8f638a12d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6776cafe-a7a9-45af-b370-6a8f638a12d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.229:82]
9ff243a3-1d9f-4c95-9d22-b5144b1935e5
ms: 602
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:12.569 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
8
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9ff243a3-1d9f-4c95-9d22-b5144b1935e5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
583
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ff243a3-1d9f-4c95-9d22-b5144b1935e5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:13.167 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2017/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:13.167 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:13.168 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:13.168 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:13.169 [print] Beheer PDOK
57
* print operateson
0
04:51:13.169 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:13.170 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:13.171 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:13.171 [print] "true";"true";"true"
76
* eval db.writeln('"9ff243a3-1d9f-4c95-9d22-b5144b1935e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9ff243a3-1d9f-4c95-9d22-b5144b1935e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9ff243a3-1d9f-4c95-9d22-b5144b1935e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.230:82]
12ba8ac9-069c-40df-abbc-3e21603ee940
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:12.661 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '12ba8ac9-069c-40df-abbc-3e21603ee940'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '12ba8ac9-069c-40df-abbc-3e21603ee940'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:13.209 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2017/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:13.209 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:13.210 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:13.210 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:13.211 [print] Beheer PDOK
57
* print operateson
0
04:51:13.211 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:13.213 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:13.214 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:13.215 [print] "true";"true"
76
* eval db.writeln('"12ba8ac9-069c-40df-abbc-3e21603ee940","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"12ba8ac9-069c-40df-abbc-3e21603ee940","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"12ba8ac9-069c-40df-abbc-3e21603ee940","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.231:82]
2d8e9629-0073-4e28-9284-4f72f91f2f58
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:12.831 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2d8e9629-0073-4e28-9284-4f72f91f2f58'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2d8e9629-0073-4e28-9284-4f72f91f2f58'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:13.399 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2016/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:13.399 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:13.400 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:13.401 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:13.402 [print] Beheer PDOK
57
* print operateson
0
04:51:13.402 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:13.403 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:13.404 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:13.405 [print] "true";"true";"true"
76
* eval db.writeln('"2d8e9629-0073-4e28-9284-4f72f91f2f58","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2d8e9629-0073-4e28-9284-4f72f91f2f58","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2d8e9629-0073-4e28-9284-4f72f91f2f58","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.232:82]
e8af7137-b357-4bc7-81d8-fccb8819f4ae
ms: 595
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:12.863 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e8af7137-b357-4bc7-81d8-fccb8819f4ae'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
584
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e8af7137-b357-4bc7-81d8-fccb8819f4ae'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:13.453 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2016/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:13.453 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:13.454 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:13.454 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:13.455 [print] Beheer PDOK
57
* print operateson
0
04:51:13.455 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:13.456 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:13.457 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:13.457 [print] "true";"true"
76
* eval db.writeln('"e8af7137-b357-4bc7-81d8-fccb8819f4ae","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e8af7137-b357-4bc7-81d8-fccb8819f4ae","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e8af7137-b357-4bc7-81d8-fccb8819f4ae","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.233:82]
ccf3d6e0-f67b-490a-b3f1-a6d129fdb253
ms: 575
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:13.174 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ccf3d6e0-f67b-490a-b3f1-a6d129fdb253'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
564
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ccf3d6e0-f67b-490a-b3f1-a6d129fdb253'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:13.744 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2013/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:13.745 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:13.745 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:13.745 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:13.746 [print] Beheer PDOK
57
* print operateson
0
04:51:13.746 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:13.747 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:13.748 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:13.749 [print] "true";"true"
76
* eval db.writeln('"ccf3d6e0-f67b-490a-b3f1-a6d129fdb253","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ccf3d6e0-f67b-490a-b3f1-a6d129fdb253","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ccf3d6e0-f67b-490a-b3f1-a6d129fdb253","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.234:82]
3f498900-56f5-4b23-8d05-0d665498662b
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:13.218 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3f498900-56f5-4b23-8d05-0d665498662b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
567
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3f498900-56f5-4b23-8d05-0d665498662b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:13.793 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2014/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:13.794 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:13.794 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:13.795 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:13.795 [print] Beheer PDOK
57
* print operateson
0
04:51:13.796 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:13.797 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:13.798 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:13.799 [print] "true";"true";"true"
76
* eval db.writeln('"3f498900-56f5-4b23-8d05-0d665498662b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3f498900-56f5-4b23-8d05-0d665498662b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3f498900-56f5-4b23-8d05-0d665498662b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.235:82]
3514d891-7e11-43df-b25f-f339ec45bda8
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:13.408 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3514d891-7e11-43df-b25f-f339ec45bda8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3514d891-7e11-43df-b25f-f339ec45bda8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:13.976 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2014/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:13.977 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:13.978 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:13.978 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:13.978 [print] Beheer PDOK
57
* print operateson
0
04:51:13.978 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:13.980 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:13.980 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:13.981 [print] "true";"true"
76
* eval db.writeln('"3514d891-7e11-43df-b25f-f339ec45bda8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3514d891-7e11-43df-b25f-f339ec45bda8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3514d891-7e11-43df-b25f-f339ec45bda8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.236:82]
59486207-3ab7-47f9-b4e6-6bb91656718e
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:13.460 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '59486207-3ab7-47f9-b4e6-6bb91656718e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '59486207-3ab7-47f9-b4e6-6bb91656718e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:14.024 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2013/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:14.025 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:14.025 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:14.025 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:14.026 [print] Beheer PDOK
57
* print operateson
0
04:51:14.026 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:14.027 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:14.028 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:14.029 [print] "true";"true";"true"
76
* eval db.writeln('"59486207-3ab7-47f9-b4e6-6bb91656718e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"59486207-3ab7-47f9-b4e6-6bb91656718e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"59486207-3ab7-47f9-b4e6-6bb91656718e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.237:82]
bbdbf836-590b-46bf-88d1-14550a2e1cb1
ms: 607
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:13.752 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bbdbf836-590b-46bf-88d1-14550a2e1cb1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
595
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bbdbf836-590b-46bf-88d1-14550a2e1cb1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:14.353 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2015/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:14.354 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:14.355 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:14.355 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:14.356 [print] Beheer PDOK
57
* print operateson
0
04:51:14.356 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:14.357 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:14.358 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:14.359 [print] "true";"true";"true"
76
* eval db.writeln('"bbdbf836-590b-46bf-88d1-14550a2e1cb1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bbdbf836-590b-46bf-88d1-14550a2e1cb1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bbdbf836-590b-46bf-88d1-14550a2e1cb1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.238:82]
f2c2f113-65d4-4de4-a7d1-d9f4d5ece6d6
ms: 602
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:13.801 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f2c2f113-65d4-4de4-a7d1-d9f4d5ece6d6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
591
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2c2f113-65d4-4de4-a7d1-d9f4d5ece6d6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:14.399 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2020/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:14.399 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:14.400 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:14.400 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:14.401 [print] Beheer PDOK
57
* print operateson
0
04:51:14.401 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:14.402 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:14.402 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:14.403 [print] "true";"true"
76
* eval db.writeln('"f2c2f113-65d4-4de4-a7d1-d9f4d5ece6d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f2c2f113-65d4-4de4-a7d1-d9f4d5ece6d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f2c2f113-65d4-4de4-a7d1-d9f4d5ece6d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.239:82]
a22e453d-2dfb-45b0-ae1b-afb813508ddb
ms: 605
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:13.983 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a22e453d-2dfb-45b0-ae1b-afb813508ddb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
577
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a22e453d-2dfb-45b0-ae1b-afb813508ddb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:14.567 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2020/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:14.568 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
16
52
* print protocol2
0
04:51:14.585 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:14.585 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:14.586 [print] Beheer PDOK
57
* print operateson
0
04:51:14.586 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:14.587 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:14.588 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:14.589 [print] "true";"true";"true"
76
* eval db.writeln('"a22e453d-2dfb-45b0-ae1b-afb813508ddb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a22e453d-2dfb-45b0-ae1b-afb813508ddb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a22e453d-2dfb-45b0-ae1b-afb813508ddb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.240:82]
9215411c-e91f-497b-8e28-74d430ccb204
ms: 596
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:14.031 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9215411c-e91f-497b-8e28-74d430ccb204'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
585
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9215411c-e91f-497b-8e28-74d430ccb204'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:14.623 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2018/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:14.623 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:14.624 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:14.624 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:14.625 [print] Beheer PDOK
57
* print operateson
0
04:51:14.625 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:14.626 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:14.627 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:14.627 [print] "true";"true"
76
* eval db.writeln('"9215411c-e91f-497b-8e28-74d430ccb204","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9215411c-e91f-497b-8e28-74d430ccb204","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9215411c-e91f-497b-8e28-74d430ccb204","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.241:82]
4c1a54dc-9c7c-4129-995d-5df1b689c1e0
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:14.362 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4c1a54dc-9c7c-4129-995d-5df1b689c1e0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
545
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4c1a54dc-9c7c-4129-995d-5df1b689c1e0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:14.915 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2018/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:14.916 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:14.917 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:14.918 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:14.919 [print] Beheer PDOK
57
* print operateson
1
04:51:14.919 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:14.921 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:14.922 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:14.923 [print] "true";"true";"true"
76
* eval db.writeln('"4c1a54dc-9c7c-4129-995d-5df1b689c1e0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4c1a54dc-9c7c-4129-995d-5df1b689c1e0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4c1a54dc-9c7c-4129-995d-5df1b689c1e0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.242:82]
f1e26638-3b45-4dd5-9ad0-f7d3654700f1
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:14.405 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f1e26638-3b45-4dd5-9ad0-f7d3654700f1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f1e26638-3b45-4dd5-9ad0-f7d3654700f1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:14.960 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2021/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:14.961 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:14.962 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:14.963 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:14.964 [print] Beheer PDOK
57
* print operateson
1
04:51:14.964 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:14.966 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:14.967 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:14.969 [print] "true";"true";"true"
76
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.243:82]
be97c150-0d1b-4c59-adbf-a2d8ebde019c
ms: 580
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:14.591 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'be97c150-0d1b-4c59-adbf-a2d8ebde019c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
567
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'be97c150-0d1b-4c59-adbf-a2d8ebde019c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:15.165 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2019/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:15.166 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:15.167 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:15.167 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:15.168 [print] Beheer PDOK
57
* print operateson
0
04:51:15.168 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:15.169 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:15.170 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:15.171 [print] "true";"true"
76
* eval db.writeln('"be97c150-0d1b-4c59-adbf-a2d8ebde019c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"be97c150-0d1b-4c59-adbf-a2d8ebde019c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"be97c150-0d1b-4c59-adbf-a2d8ebde019c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.244:82]
effe2d13-843a-4fd2-8a49-5823c282aaf3
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:14.630 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'effe2d13-843a-4fd2-8a49-5823c282aaf3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'effe2d13-843a-4fd2-8a49-5823c282aaf3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:15.197 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2019/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:15.197 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:15.198 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:15.198 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:15.199 [print] Beheer PDOK
57
* print operateson
0
04:51:15.199 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:15.200 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:15.201 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:15.202 [print] "true";"true";"true"
76
* eval db.writeln('"effe2d13-843a-4fd2-8a49-5823c282aaf3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"effe2d13-843a-4fd2-8a49-5823c282aaf3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"effe2d13-843a-4fd2-8a49-5823c282aaf3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.245:82]
84975aa1-4357-43cd-a774-d31a482a6d35
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:14.927 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '84975aa1-4357-43cd-a774-d31a482a6d35'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '84975aa1-4357-43cd-a774-d31a482a6d35'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:15.496 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2001/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:15.497 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:15.497 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:15.497 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:15.498 [print] Beheer PDOK
57
* print operateson
0
04:51:15.498 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:15.499 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:15.500 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:15.500 [print] "true";"true"
76
* eval db.writeln('"84975aa1-4357-43cd-a774-d31a482a6d35","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"84975aa1-4357-43cd-a774-d31a482a6d35","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"84975aa1-4357-43cd-a774-d31a482a6d35","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.246:82]
34d4468a-780d-43cf-91f8-b1d3b3e3c7a5
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:14.972 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '34d4468a-780d-43cf-91f8-b1d3b3e3c7a5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
546
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '34d4468a-780d-43cf-91f8-b1d3b3e3c7a5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:15.525 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2003/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:15.525 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:15.526 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:15.526 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:15.527 [print] Beheer PDOK
57
* print operateson
0
04:51:15.527 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:15.528 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:15.529 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:15.530 [print] "true";"true";"true"
76
* eval db.writeln('"34d4468a-780d-43cf-91f8-b1d3b3e3c7a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"34d4468a-780d-43cf-91f8-b1d3b3e3c7a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"34d4468a-780d-43cf-91f8-b1d3b3e3c7a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.247:82]
4639209d-61b7-4e8f-955f-49092ed8964b
ms: 586
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:15.174 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4639209d-61b7-4e8f-955f-49092ed8964b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
575
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4639209d-61b7-4e8f-955f-49092ed8964b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:15.755 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2002/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:15.756 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:15.757 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:15.757 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:15.757 [print] Beheer PDOK
57
* print operateson
0
04:51:15.757 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:15.758 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:15.759 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:15.760 [print] "true";"true"
76
* eval db.writeln('"4639209d-61b7-4e8f-955f-49092ed8964b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4639209d-61b7-4e8f-955f-49092ed8964b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4639209d-61b7-4e8f-955f-49092ed8964b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.248:82]
0c1bc4a2-79eb-451d-9475-6e7c4adb10b0
ms: 586
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:15.204 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0c1bc4a2-79eb-451d-9475-6e7c4adb10b0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
576
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0c1bc4a2-79eb-451d-9475-6e7c4adb10b0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:15.786 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2003/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:15.787 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:15.787 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:15.788 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:15.788 [print] Beheer PDOK
57
* print operateson
0
04:51:15.788 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:15.789 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:15.790 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:15.791 [print] "true";"true"
76
* eval db.writeln('"0c1bc4a2-79eb-451d-9475-6e7c4adb10b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0c1bc4a2-79eb-451d-9475-6e7c4adb10b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0c1bc4a2-79eb-451d-9475-6e7c4adb10b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.249:82]
3e169cbc-b78d-473d-9f1d-34c3f629134a
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:15.503 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3e169cbc-b78d-473d-9f1d-34c3f629134a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3e169cbc-b78d-473d-9f1d-34c3f629134a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:16.067 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2002/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:16.068 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:16.069 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:16.069 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:16.069 [print] Beheer PDOK
57
* print operateson
0
04:51:16.070 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:16.071 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:16.072 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:16.073 [print] "true";"true";"true"
76
* eval db.writeln('"3e169cbc-b78d-473d-9f1d-34c3f629134a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3e169cbc-b78d-473d-9f1d-34c3f629134a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3e169cbc-b78d-473d-9f1d-34c3f629134a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.250:82]
7ab53b91-9df1-4c39-ba0e-06ec80ce512b
ms: 585
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:15.534 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7ab53b91-9df1-4c39-ba0e-06ec80ce512b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
572
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7ab53b91-9df1-4c39-ba0e-06ec80ce512b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:51:16.113 [print] https://service.pdok.nl/rvo/ps-cdda/wms/v1_0?&request=getcapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:16.114 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:16.115 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:16.115 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:16.116 [print] Beheer PDOK
57
* print operateson
0
04:51:16.116 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=3387ef8a-9237-453a-aa4e-585d1e193550#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:16.118 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:16.118 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:16.119 [print] "true";"true"
76
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.251:82]
b023459a-9f0e-4d53-8059-a794119abbed
ms: 591
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:15.763 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b023459a-9f0e-4d53-8059-a794119abbed'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
576
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b023459a-9f0e-4d53-8059-a794119abbed'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:16.347 [print] https://service.pdok.nl/rvo/ps-cdda/wfs/v1_0?service=wfs&request=getcapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:16.347 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:16.348 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:16.348 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:16.349 [print] Beheer PDOK
57
* print operateson
0
04:51:16.350 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3387ef8a-9237-453a-aa4e-585d1e193550#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:16.351 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:16.352 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de interoperable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:16.354 [print] "true";"true";"true"
76
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.252:82]
772bec8e-ae4f-4cc5-8d8c-e7e56d89c59a
ms: 583
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:15.793 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '772bec8e-ae4f-4cc5-8d8c-e7e56d89c59a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
571
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '772bec8e-ae4f-4cc5-8d8c-e7e56d89c59a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:16.371 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2005/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:16.371 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:16.372 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:16.372 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:16.373 [print] Beheer PDOK
57
* print operateson
0
04:51:16.373 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:16.374 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:16.375 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:16.375 [print] "true";"true";"true"
76
* eval db.writeln('"772bec8e-ae4f-4cc5-8d8c-e7e56d89c59a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"772bec8e-ae4f-4cc5-8d8c-e7e56d89c59a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"772bec8e-ae4f-4cc5-8d8c-e7e56d89c59a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.253:82]
29986bd7-b5ce-4d0f-acdd-6b00ec84cfec
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:16.075 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '29986bd7-b5ce-4d0f-acdd-6b00ec84cfec'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
575
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '29986bd7-b5ce-4d0f-acdd-6b00ec84cfec'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:16.656 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2006/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:16.658 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:16.658 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:16.658 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:16.659 [print] Beheer PDOK
57
* print operateson
0
04:51:16.659 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:16.661 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:16.661 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:16.662 [print] "true";"true";"true"
76
* eval db.writeln('"29986bd7-b5ce-4d0f-acdd-6b00ec84cfec","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"29986bd7-b5ce-4d0f-acdd-6b00ec84cfec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"29986bd7-b5ce-4d0f-acdd-6b00ec84cfec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.254:82]
4ab2f91f-3049-438b-a1fb-737f29d4b588
ms: 580
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:16.123 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4ab2f91f-3049-438b-a1fb-737f29d4b588'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
568
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4ab2f91f-3049-438b-a1fb-737f29d4b588'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:16.697 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2005/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:16.698 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:16.698 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:16.699 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:16.699 [print] Beheer PDOK
57
* print operateson
0
04:51:16.700 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:16.701 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:16.702 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:16.703 [print] "true";"true"
76
* eval db.writeln('"4ab2f91f-3049-438b-a1fb-737f29d4b588","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4ab2f91f-3049-438b-a1fb-737f29d4b588","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4ab2f91f-3049-438b-a1fb-737f29d4b588","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.255:82]
5698d8bd-9e8c-4d0a-8c91-68ff3206781c
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:16.356 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5698d8bd-9e8c-4d0a-8c91-68ff3206781c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5698d8bd-9e8c-4d0a-8c91-68ff3206781c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:16.924 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2006/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:16.924 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:16.925 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:16.925 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
4
56
* print organisationpath
0
04:51:16.929 [print] Beheer PDOK
57
* print operateson
0
04:51:16.929 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:16.930 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:16.931 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:16.932 [print] "true";"true"
76
* eval db.writeln('"5698d8bd-9e8c-4d0a-8c91-68ff3206781c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5698d8bd-9e8c-4d0a-8c91-68ff3206781c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5698d8bd-9e8c-4d0a-8c91-68ff3206781c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.256:82]
633900ad-ed25-407d-8cf5-ccd2d8707447
ms: 575
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:16.378 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '633900ad-ed25-407d-8cf5-ccd2d8707447'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '633900ad-ed25-407d-8cf5-ccd2d8707447'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:16.949 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2007/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:16.950 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:16.950 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:16.950 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:16.951 [print] Beheer PDOK
57
* print operateson
0
04:51:16.951 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:16.952 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:16.952 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:16.953 [print] "true";"true";"true"
76
* eval db.writeln('"633900ad-ed25-407d-8cf5-ccd2d8707447","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"633900ad-ed25-407d-8cf5-ccd2d8707447","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"633900ad-ed25-407d-8cf5-ccd2d8707447","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.257:82]
a301ddc7-c26f-42d8-b367-509ae5ae47d0
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:16.664 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a301ddc7-c26f-42d8-b367-509ae5ae47d0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a301ddc7-c26f-42d8-b367-509ae5ae47d0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:17.234 [print] https:\/\/service.pdok.nl\/hwh\/luchtfotorgb\/wms\/v1_0?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:17.234 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:17.235 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:17.235 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:17.236 [print] Beheer PDOK
57
* print operateson
1
04:51:17.237 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=74aca3eb-c38b-4214-9537-e0abc69e11b5#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5b274449-b6c2-4672-a32f-e0bd40975a53#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=df15af6e-0d21-4437-a69f-802be3479bba#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=64ff8561-5c56-4cc1-ae0e-94366fb70b7e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4e2bb25e-a5a9-43a7-986a-40e7aea32e38#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:17.238 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:17.240 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:17.241 [print] "true";"true"
76
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.258:82]
4ba2d95d-f342-447a-9c35-ecf129a45df2
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:16.705 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4ba2d95d-f342-447a-9c35-ecf129a45df2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
568
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4ba2d95d-f342-447a-9c35-ecf129a45df2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:17.299 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/1971/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:17.299 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:17.300 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:17.300 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:17.301 [print] Beheer PDOK
57
* print operateson
0
04:51:17.301 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:17.303 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:17.303 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:17.304 [print] "true";"true";"true"
76
* eval db.writeln('"4ba2d95d-f342-447a-9c35-ecf129a45df2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4ba2d95d-f342-447a-9c35-ecf129a45df2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4ba2d95d-f342-447a-9c35-ecf129a45df2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.259:82]
6c62e0a5-c215-4e47-94b0-a239e264417d
ms: 667
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:16.934 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6c62e0a5-c215-4e47-94b0-a239e264417d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
638
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6c62e0a5-c215-4e47-94b0-a239e264417d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:17.586 [print] https:\/\/geodata.nationaalgeoregister.nl\/plu\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:17.588 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:17.589 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:17.590 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
04:51:17.592 [print] Beheer PDOK
57
* print operateson
0
04:51:17.592 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a36#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:17.596 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:17.599 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:17.602 [print] "true";"true"
76
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.260:82]
180b6682-5d6f-429d-abb7-32f7d6253787
ms: 652
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:16.955 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '180b6682-5d6f-429d-abb7-32f7d6253787'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
630
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '180b6682-5d6f-429d-abb7-32f7d6253787'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
3
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:17.595 [print] https://service.pdok.nl/rvo/windkaart/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:17.596 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:17.597 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:17.597 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:17.598 [print] Beheer PDOK
57
* print operateson
0
04:51:17.598 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=d845cef6-0e23-4212-a951-b69763e39ef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:17.600 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
6
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:17.607 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:17.608 [print] "true";"true"
76
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.261:82]
bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa
ms: 567
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:17.244 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
555
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:17.807 [print] https://service.pdok.nl/kadaster/lc/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:17.807 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:17.808 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:17.808 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:17.809 [print] Beheer PDOK
57
* print operateson
0
04:51:17.809 [print] https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:17.811 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:17.811 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:17.812 [print] "true";"true"
76
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.262:82]
d7a395a2-8673-4794-a5a6-fed6492cd580
ms: 594
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:17.309 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd7a395a2-8673-4794-a5a6-fed6492cd580'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
578
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd7a395a2-8673-4794-a5a6-fed6492cd580'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:17.895 [print] https:\/\/service.pdok.nl\/hwh\/luchtfotocir\/wms\/v1_0?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:17.896 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:17.897 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:17.897 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:17.898 [print] Beheer PDOK
57
* print operateson
1
04:51:17.899 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1be28290-55fa-4486-b9d3-b9d147117863#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=7c24ea89-074e-4c4f-91e3-d38e813e9cb6#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9ed6b8ed-254a-4745-a09a-3b57137d1b69#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4cfb1469-a152-4ba6-8fe9-4b627acd7ee0#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:17.901 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:17.902 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:17.903 [print] "true";"true"
76
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.263:82]
d981070b-888c-42d5-85ff-1e383f3d7fce
ms: 575
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:17.605 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd981070b-888c-42d5-85ff-1e383f3d7fce'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd981070b-888c-42d5-85ff-1e383f3d7fce'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:18.175 [print] https://service.pdok.nl/rvo/windkaart/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:18.176 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:18.177 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:18.177 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:18.177 [print] Beheer PDOK
57
* print operateson
0
04:51:18.177 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d845cef6-0e23-4212-a951-b69763e39ef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:18.179 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:18.179 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:18.180 [print] "true";"true"
76
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.264:82]
94f241c2-43a2-42c3-8e9e-71976605aa0e
ms: 642
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:17.610 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '94f241c2-43a2-42c3-8e9e-71976605aa0e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
625
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '94f241c2-43a2-42c3-8e9e-71976605aa0e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:18.245 [print] https://service.pdok.nl/brt/top10nl/wms/v1_0?service=wms&request=getCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:18.245 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:18.246 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:18.246 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:18.247 [print] Beheer PDOK
57
* print operateson
0
04:51:18.247 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=29d5310f-dd0d-45ba-abad-b4ffc6b8785f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:18.249 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:18.250 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:18.251 [print] "true";"true"
76
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.265:82]
74f560b3-ce64-40e0-94f7-7ff45ed4a14a
ms: 560
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:17.822 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '74f560b3-ce64-40e0-94f7-7ff45ed4a14a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '74f560b3-ce64-40e0-94f7-7ff45ed4a14a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:18.377 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2001/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:18.377 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:18.378 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:18.378 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:18.379 [print] Beheer PDOK
57
* print operateson
0
04:51:18.380 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:18.381 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:18.382 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:18.383 [print] "true";"true";"true"
76
* eval db.writeln('"74f560b3-ce64-40e0-94f7-7ff45ed4a14a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"74f560b3-ce64-40e0-94f7-7ff45ed4a14a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"74f560b3-ce64-40e0-94f7-7ff45ed4a14a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.266:82]
16f60687-7f46-4f58-9d09-f99458c9cd66
ms: 567
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:17.909 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '16f60687-7f46-4f58-9d09-f99458c9cd66'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '16f60687-7f46-4f58-9d09-f99458c9cd66'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:18.471 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2000/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:18.472 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:18.472 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:18.472 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:18.473 [print] Beheer PDOK
57
* print operateson
0
04:51:18.473 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:18.474 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:18.475 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:18.475 [print] "true";"true"
76
* eval db.writeln('"16f60687-7f46-4f58-9d09-f99458c9cd66","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"16f60687-7f46-4f58-9d09-f99458c9cd66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"16f60687-7f46-4f58-9d09-f99458c9cd66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.267:82]
f5fd4f4f-56a0-42f4-a0e4-5127016e7932
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:18.184 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f5fd4f4f-56a0-42f4-a0e4-5127016e7932'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
551
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f5fd4f4f-56a0-42f4-a0e4-5127016e7932'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:18.741 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2001/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:18.742 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:18.742 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:18.743 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:18.743 [print] Beheer PDOK
57
* print operateson
0
04:51:18.743 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:18.745 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:18.745 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:18.746 [print] "true";"true"
76
* eval db.writeln('"f5fd4f4f-56a0-42f4-a0e4-5127016e7932","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f5fd4f4f-56a0-42f4-a0e4-5127016e7932","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f5fd4f4f-56a0-42f4-a0e4-5127016e7932","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.268:82]
77dcfb9a-5ac4-4ae1-beb1-b75ad47d4c7b
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:18.254 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '77dcfb9a-5ac4-4ae1-beb1-b75ad47d4c7b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '77dcfb9a-5ac4-4ae1-beb1-b75ad47d4c7b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:18.807 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/1971/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:18.808 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:18.808 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:18.808 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:18.809 [print] Beheer PDOK
57
* print operateson
0
04:51:18.809 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:18.810 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:18.811 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:18.811 [print] "true";"true"
76
* eval db.writeln('"77dcfb9a-5ac4-4ae1-beb1-b75ad47d4c7b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"77dcfb9a-5ac4-4ae1-beb1-b75ad47d4c7b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"77dcfb9a-5ac4-4ae1-beb1-b75ad47d4c7b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.269:82]
c60cb981-b82a-48f3-a83d-8dbb9657e833
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:18.386 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c60cb981-b82a-48f3-a83d-8dbb9657e833'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c60cb981-b82a-48f3-a83d-8dbb9657e833'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:18.955 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2000/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:18.956 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:18.957 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:18.957 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:18.958 [print] Beheer PDOK
57
* print operateson
0
04:51:18.958 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:18.960 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:18.961 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:18.962 [print] "true";"true";"true"
76
* eval db.writeln('"c60cb981-b82a-48f3-a83d-8dbb9657e833","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c60cb981-b82a-48f3-a83d-8dbb9657e833","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c60cb981-b82a-48f3-a83d-8dbb9657e833","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.270:82]
b3b7b405-00d2-4bda-b237-1fa9618dc9ab
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:18.478 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b3b7b405-00d2-4bda-b237-1fa9618dc9ab'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b3b7b405-00d2-4bda-b237-1fa9618dc9ab'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:19.053 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2002/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:19.054 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:19.054 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:19.055 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:19.055 [print] Beheer PDOK
57
* print operateson
0
04:51:19.056 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:19.057 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:19.058 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:19.059 [print] "true";"true"
76
* eval db.writeln('"b3b7b405-00d2-4bda-b237-1fa9618dc9ab","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b3b7b405-00d2-4bda-b237-1fa9618dc9ab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b3b7b405-00d2-4bda-b237-1fa9618dc9ab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.271:82]
4b717eaa-1086-4235-b0bd-b4af1d4e4c1e
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:18.748 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4b717eaa-1086-4235-b0bd-b4af1d4e4c1e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4b717eaa-1086-4235-b0bd-b4af1d4e4c1e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:19.303 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2004/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:19.304 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:19.304 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:19.304 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:19.305 [print] Beheer PDOK
57
* print operateson
0
04:51:19.305 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:19.306 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:19.306 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:19.307 [print] "true";"true"
76
* eval db.writeln('"4b717eaa-1086-4235-b0bd-b4af1d4e4c1e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4b717eaa-1086-4235-b0bd-b4af1d4e4c1e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4b717eaa-1086-4235-b0bd-b4af1d4e4c1e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.272:82]
35ebe5b7-510a-462d-8dbb-0bc45f07dc23
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:18.814 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '35ebe5b7-510a-462d-8dbb-0bc45f07dc23'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '35ebe5b7-510a-462d-8dbb-0bc45f07dc23'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:19.374 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2002/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:19.374 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:19.375 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:19.375 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:19.375 [print] Beheer PDOK
57
* print operateson
0
04:51:19.375 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:19.376 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:19.377 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:19.378 [print] "true";"true";"true"
76
* eval db.writeln('"35ebe5b7-510a-462d-8dbb-0bc45f07dc23","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"35ebe5b7-510a-462d-8dbb-0bc45f07dc23","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"35ebe5b7-510a-462d-8dbb-0bc45f07dc23","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.273:82]
c6db4a22-e717-4446-b625-05eacfbb2890
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:18.965 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c6db4a22-e717-4446-b625-05eacfbb2890'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c6db4a22-e717-4446-b625-05eacfbb2890'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:19.522 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2004/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:19.522 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:19.523 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:19.523 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:19.524 [print] Beheer PDOK
57
* print operateson
0
04:51:19.524 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:19.525 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:19.526 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:19.526 [print] "true";"true";"true"
76
* eval db.writeln('"c6db4a22-e717-4446-b625-05eacfbb2890","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c6db4a22-e717-4446-b625-05eacfbb2890","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c6db4a22-e717-4446-b625-05eacfbb2890","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.274:82]
4e0a72e4-1dd7-4ec8-8991-72571c9fa3d9
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:19.061 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4e0a72e4-1dd7-4ec8-8991-72571c9fa3d9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
542
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4e0a72e4-1dd7-4ec8-8991-72571c9fa3d9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:19.610 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2003/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:19.611 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:19.611 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:19.611 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:19.612 [print] Beheer PDOK
57
* print operateson
0
04:51:19.612 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:19.613 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:19.614 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:19.614 [print] "true";"true"
76
* eval db.writeln('"4e0a72e4-1dd7-4ec8-8991-72571c9fa3d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4e0a72e4-1dd7-4ec8-8991-72571c9fa3d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4e0a72e4-1dd7-4ec8-8991-72571c9fa3d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.275:82]
4a3a58eb-3956-4477-8715-52214d84e8ca
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:19.309 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4a3a58eb-3956-4477-8715-52214d84e8ca'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4a3a58eb-3956-4477-8715-52214d84e8ca'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:19.849 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2003/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:19.850 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
1
04:51:19.851 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:19.851 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:19.852 [print] Beheer PDOK
57
* print operateson
0
04:51:19.853 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:19.855 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
22
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:19.877 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:19.878 [print] "true";"true";"true"
76
* eval db.writeln('"4a3a58eb-3956-4477-8715-52214d84e8ca","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4a3a58eb-3956-4477-8715-52214d84e8ca","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4a3a58eb-3956-4477-8715-52214d84e8ca","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.276:82]
0ab016b5-f7d1-47ee-852e-565f5efe4427
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:19.380 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0ab016b5-f7d1-47ee-852e-565f5efe4427'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0ab016b5-f7d1-47ee-852e-565f5efe4427'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:19.930 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2009/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:19.932 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:19.933 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:19.933 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:19.934 [print] Beheer PDOK
57
* print operateson
1
04:51:19.935 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:19.936 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:19.938 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:19.939 [print] "true";"true"
76
* eval db.writeln('"0ab016b5-f7d1-47ee-852e-565f5efe4427","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0ab016b5-f7d1-47ee-852e-565f5efe4427","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0ab016b5-f7d1-47ee-852e-565f5efe4427","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.277:82]
7cfc30d6-f291-4f6e-9111-472c05538fb9
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:19.529 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7cfc30d6-f291-4f6e-9111-472c05538fb9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7cfc30d6-f291-4f6e-9111-472c05538fb9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:20.097 [print] https:\/\/service.pdok.nl\/cbs\/vierkantstatistieken500m\/2008\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:20.098 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:20.098 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:20.099 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:20.099 [print] Beheer PDOK
57
* print operateson
0
04:51:20.099 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:20.101 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:20.101 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:20.102 [print] "true";"true"
76
* eval db.writeln('"7cfc30d6-f291-4f6e-9111-472c05538fb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7cfc30d6-f291-4f6e-9111-472c05538fb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7cfc30d6-f291-4f6e-9111-472c05538fb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.278:82]
d6881c12-08b1-4f1d-90f8-21e0c3c4f733
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:19.617 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd6881c12-08b1-4f1d-90f8-21e0c3c4f733'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd6881c12-08b1-4f1d-90f8-21e0c3c4f733'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:20.186 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2008/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:20.186 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:20.187 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:20.187 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:20.188 [print] Beheer PDOK
57
* print operateson
0
04:51:20.188 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:20.189 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:20.190 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:20.191 [print] "true";"true";"true"
76
* eval db.writeln('"d6881c12-08b1-4f1d-90f8-21e0c3c4f733","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d6881c12-08b1-4f1d-90f8-21e0c3c4f733","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d6881c12-08b1-4f1d-90f8-21e0c3c4f733","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.279:82]
b6ae8121-586d-430a-bd45-ab4484e96630
ms: 567
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:19.888 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b6ae8121-586d-430a-bd45-ab4484e96630'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b6ae8121-586d-430a-bd45-ab4484e96630'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:20.449 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2007/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:20.450 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:20.451 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:20.451 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:20.452 [print] Beheer PDOK
57
* print operateson
0
04:51:20.452 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:20.453 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:20.454 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:20.455 [print] "true";"true"
76
* eval db.writeln('"b6ae8121-586d-430a-bd45-ab4484e96630","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b6ae8121-586d-430a-bd45-ab4484e96630","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b6ae8121-586d-430a-bd45-ab4484e96630","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.280:82]
651421b3-63a7-4388-8566-11119bdcb874
ms: 565
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:19.943 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '651421b3-63a7-4388-8566-11119bdcb874'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '651421b3-63a7-4388-8566-11119bdcb874'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:20.505 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2009/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:20.505 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:20.506 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:20.506 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:20.506 [print] Beheer PDOK
57
* print operateson
0
04:51:20.506 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:20.507 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:20.508 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:20.509 [print] "true";"true";"true"
76
* eval db.writeln('"651421b3-63a7-4388-8566-11119bdcb874","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"651421b3-63a7-4388-8566-11119bdcb874","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"651421b3-63a7-4388-8566-11119bdcb874","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.281:82]
108fec55-e467-4d04-ab35-fd0d7060e3e2
ms: 604
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:20.105 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '108fec55-e467-4d04-ab35-fd0d7060e3e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
593
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '108fec55-e467-4d04-ab35-fd0d7060e3e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:20.704 [print] https://service.pdok.nl/rws/richtlijnstedelijkafvalwater/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:20.705 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:20.705 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:20.705 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:20.706 [print] Beheer PDOK
57
* print operateson
0
04:51:20.706 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=07d78f5e-f4c4-4c92-b866-94eb2cb38516#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=cc931834-5f9a-4106-a3a3-d5bf553b2675#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=917b5ba0-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=11a98cc2-2e64-4f05-ae16-b7677f8054ad#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:20.707 [print] "https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1";"http:\/\/data.europa.eu\/eli\/reg\/2009\/976"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:20.708 [print] "Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:20.709 [print] "true";"true"
76
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.282:82]
2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0
ms: 634
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:20.194 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
624
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:20.824 [print] https://service.pdok.nl/rws/richtlijnoverstromingsrisico/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:20.824 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:20.825 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:20.825 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:20.825 [print] Beheer PDOK
57
* print operateson
0
04:51:20.825 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=155f4288-e7c6-4278-8145-0e8cb5ffe52d#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=babb8ae8-533f-4fd1-be66-e8dcccf20b33#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=0e6bbc35-489b-4209-8e5c-41e36b9d0351#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:20.826 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:20.827 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:20.828 [print] "true";"true"
76
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.283:82]
757a7c50-540d-4105-9135-73f09f700743
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:20.458 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '757a7c50-540d-4105-9135-73f09f700743'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '757a7c50-540d-4105-9135-73f09f700743'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:21.025 [print] https://service.pdok.nl/bzk/bro-grondwaterspiegeldiepte/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:21.025 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:21.026 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:21.026 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:21.026 [print] Beheer PDOK
57
* print operateson
0
04:51:21.026 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b756dabe-a331-42cd-b45e-f61828ee4534#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:21.027 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:21.028 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:21.028 [print] "true";"true"
76
* eval db.writeln('"757a7c50-540d-4105-9135-73f09f700743","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"757a7c50-540d-4105-9135-73f09f700743","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"757a7c50-540d-4105-9135-73f09f700743","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.284:82]
26e2e9f4-be88-4c8c-bdef-94edfa93bde9
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:20.511 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
2
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '26e2e9f4-be88-4c8c-bdef-94edfa93bde9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '26e2e9f4-be88-4c8c-bdef-94edfa93bde9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:21.072 [print] https://service.pdok.nl/bzk/bro-hydrogeology/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:21.073 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:21.074 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:21.074 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:21.075 [print] Beheer PDOK
57
* print operateson
0
04:51:21.076 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:21.077 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:21.078 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:21.079 [print] "true";"true"
76
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.285:82]
40f04047-3b61-40eb-b026-c1a0caa71881
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:20.711 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '40f04047-3b61-40eb-b026-c1a0caa71881'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '40f04047-3b61-40eb-b026-c1a0caa71881'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:21.278 [print] https://service.pdok.nl/rvo/potentiekaart-reststromen/wfs/v1_0?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:21.278 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:21.279 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:21.279 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:21.280 [print] Beheer PDOK
57
* print operateson
0
04:51:21.281 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=34dacd72-d2fb-4e28-844d-73d3b9c3fef2#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=419b85e5-04ee-4cc9-b910-bc58594a943a#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=119f7512-a71e-4d1a-82e7-7a2b63f9338b#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6ea55ec4-f312-40ef-9935-68806e61b496#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=af784610-df36-4d40-bac0-23d8e728999f#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=24eb504e-f5f3-4ecf-b760-cc5630e82a57#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:21.282 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:21.283 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:21.284 [print] "true";"true"
76
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.286:82]
918388cf-9d8c-4264-b108-3e375bde0d52
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:20.831 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '918388cf-9d8c-4264-b108-3e375bde0d52'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '918388cf-9d8c-4264-b108-3e375bde0d52'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:21.386 [print] https:\/\/service.pdok.nl\/rws\/vaarwegmarkeringennld\/wms\/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:21.386 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:21.387 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:21.387 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:21.388 [print] Beheer PDOK
57
* print operateson
0
04:51:21.388 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=be1b1514-8d1f-48e1-9624-fee9b784138b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:21.389 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:21.390 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:21.390 [print] "true";"true"
76
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.287:82]
d1cb16ca-2029-454f-b3f1-f70bceaf62c1
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:21.031 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd1cb16ca-2029-454f-b3f1-f70bceaf62c1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd1cb16ca-2029-454f-b3f1-f70bceaf62c1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:21.601 [print] https:\/\/service.pdok.nl\/bzk\/bro-geomorfologischekaart\/wms\/v2_0?request=getcapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:21.601 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:21.602 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:21.602 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:21.602 [print] Beheer PDOK
57
* print operateson
0
04:51:21.602 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=459231d0-7379-4f26-a444-7616e1d888f0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:21.604 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:21.604 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:21.605 [print] "true";"true"
76
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.288:82]
ceda1b88-32ac-40b2-a841-71eb041c9427
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:21.082 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ceda1b88-32ac-40b2-a841-71eb041c9427'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ceda1b88-32ac-40b2-a841-71eb041c9427'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
0
04:51:21.660 [print] https://service.pdok.nl/rvo/potentiekaart-reststromen/wms/v1_0?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:21.661 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:21.662 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:21.663 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:21.664 [print] Beheer PDOK
57
* print operateson
0
04:51:21.664 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=34dacd72-d2fb-4e28-844d-73d3b9c3fef2#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=419b85e5-04ee-4cc9-b910-bc58594a943a#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=119f7512-a71e-4d1a-82e7-7a2b63f9338b#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6ea55ec4-f312-40ef-9935-68806e61b496#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=af784610-df36-4d40-bac0-23d8e728999f#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=24eb504e-f5f3-4ecf-b760-cc5630e82a57#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:21.666 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:21.667 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:21.668 [print] "true";"true"
76
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.289:82]
5117ebc1-5a63-439b-b3ca-43b80be804fb
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:21.287 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5117ebc1-5a63-439b-b3ca-43b80be804fb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
566
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5117ebc1-5a63-439b-b3ca-43b80be804fb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
3
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:21.863 [print] https://service.pdok.nl/kadaster/ad/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:21.864 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:21.865 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:21.865 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:21.866 [print] Beheer PDOK
57
* print operateson
0
04:51:21.866 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a5f961e9-ebdd-41e2-b8e8-ab33ed340a83#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
5
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:21.872 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:21.873 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:21.874 [print] "true";"true"
76
* eval db.writeln('"5117ebc1-5a63-439b-b3ca-43b80be804fb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5117ebc1-5a63-439b-b3ca-43b80be804fb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5117ebc1-5a63-439b-b3ca-43b80be804fb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.290:82]
33f3b24a-0b34-4153-9930-726d575a04d1
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:21.393 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '33f3b24a-0b34-4153-9930-726d575a04d1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '33f3b24a-0b34-4153-9930-726d575a04d1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:21.961 [print] https://service.pdok.nl/provincies/aardkundige-waarden/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:21.962 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:21.963 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:21.963 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:21.964 [print] Beheer PDOK
57
* print operateson
0
04:51:21.964 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f002bfc5-7d87-46b6-819e-8415422b65c9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:21.967 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:21.968 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:21.969 [print] "true";"true"
76
* eval db.writeln('"33f3b24a-0b34-4153-9930-726d575a04d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"33f3b24a-0b34-4153-9930-726d575a04d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"33f3b24a-0b34-4153-9930-726d575a04d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.291:82]
94e5b115-bece-4140-99ed-93b8f363948e
ms: 555
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:21.608 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '94e5b115-bece-4140-99ed-93b8f363948e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '94e5b115-bece-4140-99ed-93b8f363948e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:22.158 [print] https://service.pdok.nl/rws/ahn3/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:22.158 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:22.159 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:22.159 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:22.160 [print] Beheer PDOK
57
* print operateson
0
04:51:22.160 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:22.161 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:22.162 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:22.163 [print] "true";"true"
76
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.292:82]
a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:21.671 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
555
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:22.232 [print] https://service.pdok.nl/kadaster/lu/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:22.233 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:22.233 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:22.233 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:22.234 [print] Beheer PDOK
57
* print operateson
0
04:51:22.234 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a88#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:22.235 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:22.235 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:22.236 [print] "true";"true"
76
* eval db.writeln('"a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.293:82]
101a2cc7-bb53-4a16-98f9-bab1f4745b01
ms: 596
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:21.877 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '101a2cc7-bb53-4a16-98f9-bab1f4745b01'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
579
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '101a2cc7-bb53-4a16-98f9-bab1f4745b01'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:22.464 [print] https:\/\/service.pdok.nl\/rce\/ps-ch\/wfs\/v1_0?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:22.466 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:22.467 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:22.467 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:22.468 [print] Beheer PDOK
57
* print operateson
0
04:51:22.468 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:22.471 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:22.472 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de interoperable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:22.473 [print] "true";"true";"true"
76
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.294:82]
dd49e02c-ea87-4ffc-89dd-f888608d95b7
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:21.971 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dd49e02c-ea87-4ffc-89dd-f888608d95b7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
542
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dd49e02c-ea87-4ffc-89dd-f888608d95b7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:22.521 [print] https://geodata.nationaalgeoregister.nl/nationaleparken/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:22.522 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:22.523 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:22.524 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:22.525 [print] Beheer PDOK
57
* print operateson
1
04:51:22.525 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:22.527 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:22.528 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:22.530 [print] "true";"true"
76
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.295:82]
8dcae920-002d-451d-9cef-cd4498358770
ms: 612
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:22.165 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8dcae920-002d-451d-9cef-cd4498358770'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
601
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8dcae920-002d-451d-9cef-cd4498358770'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:22.773 [print] https://service.pdok.nl/rvo/mosselenoesterhabitats/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:22.773 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:22.774 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:22.774 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:22.774 [print] Beheer PDOK
57
* print operateson
0
04:51:22.774 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3d59fd06-9aec-4744-91e7-65e119f74569#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:22.776 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:22.776 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:22.777 [print] "true";"true"
76
* eval db.writeln('"8dcae920-002d-451d-9cef-cd4498358770","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8dcae920-002d-451d-9cef-cd4498358770","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8dcae920-002d-451d-9cef-cd4498358770","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.296:82]
f00cd4f5-03e7-494f-8410-d07acf2247b1
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:22.241 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f00cd4f5-03e7-494f-8410-d07acf2247b1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f00cd4f5-03e7-494f-8410-d07acf2247b1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:22.805 [print] https://service.pdok.nl/rvo/mosselenoesterhabitats/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:22.806 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:22.807 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:22.807 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:22.808 [print] Beheer PDOK
57
* print operateson
0
04:51:22.808 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3d59fd06-9aec-4744-91e7-65e119f74569#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:22.809 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:22.810 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:22.810 [print] "true";"true"
76
* eval db.writeln('"f00cd4f5-03e7-494f-8410-d07acf2247b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f00cd4f5-03e7-494f-8410-d07acf2247b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f00cd4f5-03e7-494f-8410-d07acf2247b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.297:82]
67bcc21d-beda-449d-975c-00a4fa80f2b7
ms: 611
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:22.476 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
1
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '67bcc21d-beda-449d-975c-00a4fa80f2b7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
598
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '67bcc21d-beda-449d-975c-00a4fa80f2b7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:23.083 [print] https:\/\/service.pdok.nl\/hwh\/hydrografie\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:23.084 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:23.084 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:23.084 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:23.085 [print] Beheer PDOK
57
* print operateson
0
04:51:23.085 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07575774-57a1-4419-bab4-6c88fdeb02b2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:23.086 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:23.087 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:23.087 [print] "true";"true"
76
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.298:82]
a2724dae-ebad-4a07-9405-49bddfde3368
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:22.537 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a2724dae-ebad-4a07-9405-49bddfde3368'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a2724dae-ebad-4a07-9405-49bddfde3368'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:23.104 [print] https://service.pdok.nl/rws/verkeersscheidingsstelsel/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:23.105 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:23.105 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:23.105 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:23.106 [print] Beheer PDOK
57
* print operateson
0
04:51:23.106 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:23.107 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:23.108 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:23.108 [print] "true";"true";"true"
76
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.299:82]
7b8f44b5-6eae-4113-a835-84b8678c3dd5
ms: 565
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:22.779 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7b8f44b5-6eae-4113-a835-84b8678c3dd5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7b8f44b5-6eae-4113-a835-84b8678c3dd5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:23.340 [print] https://service.pdok.nl/rce/ps-ch/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:23.341 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:23.341 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:23.341 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:23.342 [print] Beheer PDOK
57
* print operateson
0
04:51:23.342 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:23.343 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:23.344 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:23.344 [print] "true";"true"
76
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.300:82]
2650d49b-7d9a-49b5-b748-a0372cd9b5cf
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:22.813 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2650d49b-7d9a-49b5-b748-a0372cd9b5cf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2650d49b-7d9a-49b5-b748-a0372cd9b5cf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:23.377 [print] https:\/\/service.pdok.nl\/hwh\/wsdiensteninspire\/wms\/v1_0?service=wms&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:23.378 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:23.379 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:23.379 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:23.381 [print] Beheer PDOK
57
* print operateson
0
04:51:23.381 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=bffcd5d9-02b4-4e7d-991f-a386611cad84#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:23.383 [print] https://inspire.ec.europa.eu/documents/technical-guidance-implementation-inspire-view-services-1
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:23.384 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"conform specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:23.385 [print] "true";"true"
76
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.301:82]
d556f31b-97f1-467f-9451-096004a30067
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:23.090 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd556f31b-97f1-467f-9451-096004a30067'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd556f31b-97f1-467f-9451-096004a30067'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:23.651 [print] https://service.pdok.nl/kadaster/wkpb/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:23.651 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:23.652 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:23.652 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:23.653 [print] Beheer PDOK
57
* print operateson
0
04:51:23.653 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5d2ffea6-e7c5-4e29-9474-c13718828779#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:23.654 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"urn:ogc:def:uom:OGC::percent";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:23.655 [print] "Conform verordening";"De service voldoet aan de requirements van de invocable conformance class";"is conform Web Feature Service - 2.0 specificatie";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:23.655 [print] "true";"true";"true"
76
* eval db.writeln('"d556f31b-97f1-467f-9451-096004a30067","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d556f31b-97f1-467f-9451-096004a30067","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d556f31b-97f1-467f-9451-096004a30067","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.302:82]
56a3a4f1-c1a0-4eb7-9a2b-b84e41f8903b
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:23.111 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '56a3a4f1-c1a0-4eb7-9a2b-b84e41f8903b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '56a3a4f1-c1a0-4eb7-9a2b-b84e41f8903b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:23.686 [print] https://service.pdok.nl/kadaster/wkpb/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:23.687 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:23.688 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:23.688 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:23.689 [print] Beheer PDOK
57
* print operateson
0
04:51:23.690 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5d2ffea6-e7c5-4e29-9474-c13718828779#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:23.691 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:23.692 [print] "Conform verordening";"Conform technische specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:23.693 [print] "true";"true"
76
* eval db.writeln('"56a3a4f1-c1a0-4eb7-9a2b-b84e41f8903b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"56a3a4f1-c1a0-4eb7-9a2b-b84e41f8903b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"56a3a4f1-c1a0-4eb7-9a2b-b84e41f8903b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.303:82]
3e65fa1b-9bb1-41bd-9760-76962751b839
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:23.347 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3e65fa1b-9bb1-41bd-9760-76962751b839'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
546
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3e65fa1b-9bb1-41bd-9760-76962751b839'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:23.899 [print] https://service.pdok.nl/rws/verkeersscheidingsstelsel/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:23.900 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:23.901 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:23.901 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:23.901 [print] Beheer PDOK
57
* print operateson
0
04:51:23.902 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:23.903 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:23.903 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:23.904 [print] "true";"true"
76
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.304:82]
b87a0095-2ad7-4dbb-81a1-fed060df79e1
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:23.387 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b87a0095-2ad7-4dbb-81a1-fed060df79e1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b87a0095-2ad7-4dbb-81a1-fed060df79e1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:23.955 [print] https://geodata.nationaalgeoregister.nl/nationaleparken/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:23.955 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:23.956 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:23.956 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:23.956 [print] Beheer PDOK
57
* print operateson
0
04:51:23.957 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:23.958 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:23.958 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:23.959 [print] "true";"true"
76
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.305:82]
e6c18185-719e-4729-8131-798dd9a69e8d
ms: 623
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:23.658 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e6c18185-719e-4729-8131-798dd9a69e8d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
612
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e6c18185-719e-4729-8131-798dd9a69e8d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:24.276 [print] https://service.pdok.nl/provincies/zwemwater-provinciaal-rijkswateren/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:24.277 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:24.277 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:24.278 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:24.278 [print] Beheer PDOK
57
* print operateson
0
04:51:24.278 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:24.280 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:24.280 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:24.281 [print] "true";"true"
76
* eval db.writeln('"e6c18185-719e-4729-8131-798dd9a69e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e6c18185-719e-4729-8131-798dd9a69e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e6c18185-719e-4729-8131-798dd9a69e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.306:82]
57844c27-ff48-4e0b-9321-174d83829a19
ms: 619
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:23.697 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '57844c27-ff48-4e0b-9321-174d83829a19'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
609
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '57844c27-ff48-4e0b-9321-174d83829a19'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:24.312 [print] https://service.pdok.nl/provincies/wet-ammoniak-veehouderij-gebieden/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:24.312 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:24.312 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:24.313 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:24.313 [print] Beheer PDOK
57
* print operateson
0
04:51:24.313 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:24.314 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:24.315 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:24.315 [print] "true";"true"
76
* eval db.writeln('"57844c27-ff48-4e0b-9321-174d83829a19","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"57844c27-ff48-4e0b-9321-174d83829a19","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"57844c27-ff48-4e0b-9321-174d83829a19","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.307:82]
5523cfd7-a72c-409e-a0c7-89b858aafa64
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:23.907 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5523cfd7-a72c-409e-a0c7-89b858aafa64'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5523cfd7-a72c-409e-a0c7-89b858aafa64'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:24.465 [print] https://service.pdok.nl/bzk/bro-environmental-monitoring-facilities/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:24.466 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:24.466 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:24.466 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:24.467 [print] Beheer PDOK
57
* print operateson
0
04:51:24.467 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:24.468 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:24.469 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:24.469 [print] "true";"true"
76
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.308:82]
82a98057-861b-4c69-9b8e-fe1a7d7bdd29
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:23.961 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '82a98057-861b-4c69-9b8e-fe1a7d7bdd29'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
572
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '82a98057-861b-4c69-9b8e-fe1a7d7bdd29'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:24.538 [print] https://service.pdok.nl/provincies/provinciaal-landschapsbeleid/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:24.539 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:24.539 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:24.539 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:24.540 [print] Beheer PDOK
57
* print operateson
0
04:51:24.540 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=60a2a7c2-d5b3-4ad5-b562-c448695357fb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:24.541 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:24.542 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:24.542 [print] "true";"true"
76
* eval db.writeln('"82a98057-861b-4c69-9b8e-fe1a7d7bdd29","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"82a98057-861b-4c69-9b8e-fe1a7d7bdd29","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"82a98057-861b-4c69-9b8e-fe1a7d7bdd29","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.309:82]
a6341e75-0dff-4948-9317-433324ab483b
ms: 677
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:24.283 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a6341e75-0dff-4948-9317-433324ab483b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
654
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a6341e75-0dff-4948-9317-433324ab483b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
5
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
3
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:24.951 [print] https://service.pdok.nl/provincies/natuurnetwerk-nederland/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:24.951 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:24.952 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:24.952 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:24.953 [print] Beheer PDOK
57
* print operateson
0
04:51:24.953 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c7d8d77b-8c47-4309-8c58-9b12b086407f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:24.955 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:24.956 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:24.957 [print] "true";"true"
76
* eval db.writeln('"a6341e75-0dff-4948-9317-433324ab483b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a6341e75-0dff-4948-9317-433324ab483b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a6341e75-0dff-4948-9317-433324ab483b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
3
Scenario: [1.310:82]
609d0c9e-173f-4f90-b020-c91ab3a0b6ef
ms: 624
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:24.318 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '609d0c9e-173f-4f90-b020-c91ab3a0b6ef'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '609d0c9e-173f-4f90-b020-c91ab3a0b6ef'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:24.893 [print] https:\/\/service.pdok.nl\/kadaster\/rdinfo\/wms\/v1_0?request=getcapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:24.894 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:24.894 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:24.894 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
22
56
* print organisationpath
0
04:51:24.916 [print] Beheer PDOK
57
* print operateson
0
04:51:24.916 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=29c17585-e702-463f-a5dc-99d34b17d333#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
21
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:24.938 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:24.939 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:24.940 [print] "true";"true"
76
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
2
78
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.311:82]
3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:24.472 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:25.038 [print] https:\/\/service.pdok.nl\/kadaster\/rdinfo\/wfs\/v1_0?request=getcapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:25.039 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:25.040 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:25.040 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:25.041 [print] Beheer PDOK
57
* print operateson
0
04:51:25.041 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=29c17585-e702-463f-a5dc-99d34b17d333#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:25.043 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:25.044 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:25.045 [print] "true";"true"
76
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.312:82]
dae8f9e3-99af-4d21-9feb-29f2a1693077
ms: 605
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:24.545 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dae8f9e3-99af-4d21-9feb-29f2a1693077'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
594
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dae8f9e3-99af-4d21-9feb-29f2a1693077'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:25.145 [print] https://service.pdok.nl/kadaster/tn/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:25.145 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:25.146 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:25.146 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:25.147 [print] Beheer PDOK
57
* print operateson
0
04:51:25.147 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=6c06740d-058f-4a12-bb3f-bf68efd03d09#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8f45b8ef-0ce8-463a-9059-5efdcecb785c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:25.148 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:25.149 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:25.149 [print] "true";"true"
76
* eval db.writeln('"dae8f9e3-99af-4d21-9feb-29f2a1693077","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dae8f9e3-99af-4d21-9feb-29f2a1693077","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dae8f9e3-99af-4d21-9feb-29f2a1693077","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.313:82]
bfcc588f-9393-4c70-b989-d9e92ac2f493
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:24.944 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bfcc588f-9393-4c70-b989-d9e92ac2f493'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bfcc588f-9393-4c70-b989-d9e92ac2f493'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:25.500 [print] https://service.pdok.nl/rws/ahn3/wcs/v1_0?&service=wcs&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:25.501 [print] OGC:WCS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:25.501 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:25.502 [print] OGC:WCS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:25.502 [print] Beheer PDOK
57
* print operateson
0
04:51:25.502 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:25.504 [print] https://inspire.ec.europa.eu/documents/technical-guidance-implementation-inspire-download-services
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:25.505 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"de service is conform";"conform specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:25.505 [print] "true";"true"
76
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.314:82]
b8300fd4-3224-4b44-ae92-3eb82da0bb85
ms: 579
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:24.963 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b8300fd4-3224-4b44-ae92-3eb82da0bb85'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b8300fd4-3224-4b44-ae92-3eb82da0bb85'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:25.539 [print] https://service.pdok.nl/rvo/vogelrichtlijnsoorten/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:25.539 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:25.540 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:25.540 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:25.540 [print] Beheer PDOK
57
* print operateson
0
04:51:25.540 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fcefa13c-44e2-4953-b6d6-1ddceebc57fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:25.541 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:25.542 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:25.542 [print] "true";"true"
76
* eval db.writeln('"b8300fd4-3224-4b44-ae92-3eb82da0bb85","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b8300fd4-3224-4b44-ae92-3eb82da0bb85","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b8300fd4-3224-4b44-ae92-3eb82da0bb85","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.315:82]
43a37418-365c-4848-b885-5823259ca7c9
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:25.049 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '43a37418-365c-4848-b885-5823259ca7c9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '43a37418-365c-4848-b885-5823259ca7c9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:25.608 [print] https://haleconnect.com/ows/services/org.292.cefad637-5ffd-4dd0-b475-bc125a11f7e6_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
1
04:51:25.609 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:25.610 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:25.610 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:25.611 [print] Rijkswaterstaat
57
* print operateson
0
04:51:25.611 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cefad637-5ffd-4dd0-b475-bc125a11f7ea#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:25.612 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:25.613 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:25.613 [print] true
76
* eval db.writeln('"43a37418-365c-4848-b885-5823259ca7c9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"43a37418-365c-4848-b885-5823259ca7c9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"43a37418-365c-4848-b885-5823259ca7c9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.316:82]
4805aac3-9a8d-4fcd-851b-88c7b3d342e2
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:25.152 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4805aac3-9a8d-4fcd-851b-88c7b3d342e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4805aac3-9a8d-4fcd-851b-88c7b3d342e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:25.714 [print] https://service.pdok.nl/kadaster/sr/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:25.714 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:25.714 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:25.715 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:25.715 [print] Beheer PDOK
57
* print operateson
0
04:51:25.715 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:25.716 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:25.717 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:25.718 [print] "true";"true"
76
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.317:82]
8a772a52-d659-47b3-a131-82398fb78664
ms: 556
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:25.508 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8a772a52-d659-47b3-a131-82398fb78664'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
544
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8a772a52-d659-47b3-a131-82398fb78664'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:26.058 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:26.058 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:26.059 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:26.059 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:26.060 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:26.060 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:26.062 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:26.063 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:26.063 [print] true
76
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.318:82]
1c0dcc64-91aa-4d44-a9e3-54355556f5e7
ms: 586
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:25.545 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1c0dcc64-91aa-4d44-a9e3-54355556f5e7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
572
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1c0dcc64-91aa-4d44-a9e3-54355556f5e7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:26.124 [print] https:\/\/service.pdok.nl\/lv\/bag\/wfs\/v2_0?request=getCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:26.125 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:26.126 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:26.126 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
04:51:26.128 [print] Beheer PDOK
57
* print operateson
0
04:51:26.128 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:26.129 [print] "http:\/\/";"";"http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:26.130 [print] "";"Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:26.131 [print] "true";"true";"true"
76
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.319:82]
9e2e977a-16a6-42a4-a208-c4f70704f383
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:25.616 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9e2e977a-16a6-42a4-a208-c4f70704f383'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9e2e977a-16a6-42a4-a208-c4f70704f383'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:26.180 [print] https:\/\/service.pdok.nl\/lv\/bag\/wms\/v2_0?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:26.182 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:26.183 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:26.183 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:26.184 [print] Beheer PDOK
57
* print operateson
0
04:51:26.185 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:26.186 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:26.188 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:26.189 [print] "true";"true"
76
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.320:82]
5e5d713c-e89d-441f-a848-9e4fe5d48400
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:25.720 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5e5d713c-e89d-441f-a848-9e4fe5d48400'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5e5d713c-e89d-441f-a848-9e4fe5d48400'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:26.273 [print] https://haleconnect.com/ows/services/org.292.917b5ba0-4fdd-4654-8c18-b3ccdadaa550_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:26.274 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:26.274 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:26.274 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:26.275 [print] Rijkswaterstaat
57
* print operateson
0
04:51:26.275 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=917b5ba0-4fdd-4654-8c18-b3ccdadaa55a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:26.276 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:26.277 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:26.278 [print] true
76
* eval db.writeln('"5e5d713c-e89d-441f-a848-9e4fe5d48400","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5e5d713c-e89d-441f-a848-9e4fe5d48400","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5e5d713c-e89d-441f-a848-9e4fe5d48400","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.321:82]
7681eb19-a914-4dc7-9208-c2a131dca06d
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:26.066 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7681eb19-a914-4dc7-9208-c2a131dca06d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7681eb19-a914-4dc7-9208-c2a131dca06d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:26.630 [print] https:\/\/service.pdok.nl\/rws\/kaderrichtlijnwater\/wms\/v1_0?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:26.631 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:26.631 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:26.631 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:26.632 [print] Beheer PDOK
57
* print operateson
0
04:51:26.632 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbeag#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbead#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:26.633 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:26.634 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:26.635 [print] "true";"true"
76
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.322:82]
9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:26.133 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:26.698 [print] https:\/\/geo.rijkswaterstaat.nl\/services\/ogc\/gdr\/bodemhoogte_1mtr\/ows?service=WCS&request=getcapabilities&version=2.0.1
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:26.699 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:26.700 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:26.701 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:26.702 [print] Rijkswaterstaat
57
* print operateson
0
04:51:26.703 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:26.705 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/id\/document\/tg\/download-wcs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:26.706 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:26.707 [print] "false";"true"
76
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.323:82]
62e11629-7fdc-4831-bf27-bc179244db43
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:26.192 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '62e11629-7fdc-4831-bf27-bc179244db43'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '62e11629-7fdc-4831-bf27-bc179244db43'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:26.756 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2021/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:26.757 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:26.757 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:26.757 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:26.758 [print] Beheer PDOK
57
* print operateson
0
04:51:26.758 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:26.759 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:26.760 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:26.760 [print] "true";"true";"true"
76
* eval db.writeln('"62e11629-7fdc-4831-bf27-bc179244db43","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"62e11629-7fdc-4831-bf27-bc179244db43","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"62e11629-7fdc-4831-bf27-bc179244db43","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.324:82]
755d488b-7b94-4883-95be-6aa279604f85
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:26.280 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '755d488b-7b94-4883-95be-6aa279604f85'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '755d488b-7b94-4883-95be-6aa279604f85'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:26.845 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:26.845 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:26.846 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:26.846 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:26.846 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:26.846 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:26.848 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:26.848 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:26.849 [print] "true";"true";"true"
76
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.325:82]
b5ee6914-04bd-4c7e-a180-242371ae40d9
ms: 567
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:26.638 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b5ee6914-04bd-4c7e-a180-242371ae40d9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
555
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b5ee6914-04bd-4c7e-a180-242371ae40d9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:27.199 [print] https://data.rivm.nl/data/inspire/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:27.200 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:27.201 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:27.201 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:27.201 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:27.201 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ad6caa40-89ab-47e3-85ab-3f8e32024a71#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d3c9efd6-fca7-49d6-92bb-5f507abece90#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:27.203 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:27.203 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.0";"notEvaluated";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:27.204 [print] "false";"true";"true"
76
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.326:82]
710a6a9b-c09f-4660-b15a-2d5bee27e7e3
ms: 613
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:26.710 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '710a6a9b-c09f-4660-b15a-2d5bee27e7e3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
599
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '710a6a9b-c09f-4660-b15a-2d5bee27e7e3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:51:27.317 [print] https://service.pdok.nl/cbs/gebiedsindelingen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:27.318 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:27.319 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:27.319 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:27.320 [print] Beheer PDOK
57
* print operateson
0
04:51:27.321 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:27.322 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:27.323 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:27.324 [print] "true";"true"
76
* eval db.writeln('"710a6a9b-c09f-4660-b15a-2d5bee27e7e3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"710a6a9b-c09f-4660-b15a-2d5bee27e7e3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"710a6a9b-c09f-4660-b15a-2d5bee27e7e3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.327:82]
931b1a00-ad24-4eed-a73c-cb5441056136
ms: 592
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:26.763 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '931b1a00-ad24-4eed-a73c-cb5441056136'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
583
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '931b1a00-ad24-4eed-a73c-cb5441056136'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:27.351 [print] https://service.pdok.nl/rvo/nationaleparken/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:27.352 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:27.352 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:27.352 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:27.353 [print] Beheer PDOK
57
* print operateson
0
04:51:27.353 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=247a1d15-0a67-40ce-85be-1403c08f15a8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:27.354 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:27.355 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:27.355 [print] "true";"true"
76
* eval db.writeln('"931b1a00-ad24-4eed-a73c-cb5441056136","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"931b1a00-ad24-4eed-a73c-cb5441056136","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"931b1a00-ad24-4eed-a73c-cb5441056136","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.328:82]
56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9
ms: 595
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:26.851 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
585
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:27.442 [print] https://service.pdok.nl/bzk/bro-geomorfologischekaart/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:27.443 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:27.443 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:27.443 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:27.444 [print] Beheer PDOK
57
* print operateson
0
04:51:27.444 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=459231d0-7379-4f26-a444-7616e1d888f0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:27.445 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:27.446 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:27.446 [print] "true";"true"
76
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.329:82]
47470f53-e0aa-45f3-ada3-ddf130dd54af
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:27.208 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '47470f53-e0aa-45f3-ada3-ddf130dd54af'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '47470f53-e0aa-45f3-ada3-ddf130dd54af'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:27.774 [print] https://service.pdok.nl/cbs/wijkenbuurten/2021/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:27.775 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:27.776 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
5
04:51:27.781 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:27.782 [print] Beheer PDOK
57
* print operateson
1
04:51:27.782 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:27.784 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:27.785 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:27.786 [print] "true";"true"
76
* eval db.writeln('"47470f53-e0aa-45f3-ada3-ddf130dd54af","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"47470f53-e0aa-45f3-ada3-ddf130dd54af","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"47470f53-e0aa-45f3-ada3-ddf130dd54af","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.330:82]
7165bb1f-fea6-4f28-b1d2-a2a92a11ea2f
ms: 601
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:27.327 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7165bb1f-fea6-4f28-b1d2-a2a92a11ea2f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
589
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7165bb1f-fea6-4f28-b1d2-a2a92a11ea2f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:27.922 [print] https://service.pdok.nl/rws/vin/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:27.923 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:27.924 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:27.924 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:27.924 [print] Beheer PDOK
57
* print operateson
0
04:51:27.925 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:27.926 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:27.927 [print] "Conform verordening";"Conform technische specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:27.927 [print] "true";"true"
76
* eval db.writeln('"7165bb1f-fea6-4f28-b1d2-a2a92a11ea2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7165bb1f-fea6-4f28-b1d2-a2a92a11ea2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7165bb1f-fea6-4f28-b1d2-a2a92a11ea2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.331:82]
5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0
ms: 596
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:27.357 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
582
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:27.946 [print] https://service.pdok.nl/provincies/zwemwater-provinciaal-rijkswateren/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:27.947 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:27.948 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:27.948 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:27.949 [print] Beheer PDOK
57
* print operateson
1
04:51:27.950 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:27.951 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:27.953 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:27.954 [print] "true";"true"
76
* eval db.writeln('"5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.332:82]
a6a249b9-70fe-4e47-bbe2-c864d712ed5b
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:27.449 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a6a249b9-70fe-4e47-bbe2-c864d712ed5b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
545
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a6a249b9-70fe-4e47-bbe2-c864d712ed5b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:28.000 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:28.001 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:28.002 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:28.002 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:28.003 [print] Beheer PDOK
57
* print operateson
0
04:51:28.004 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:28.005 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:28.006 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:28.007 [print] "true";"true"
76
* eval db.writeln('"a6a249b9-70fe-4e47-bbe2-c864d712ed5b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a6a249b9-70fe-4e47-bbe2-c864d712ed5b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a6a249b9-70fe-4e47-bbe2-c864d712ed5b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.333:82]
f95c6429-2cdf-47b8-bc2a-e614440050b8
ms: 583
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:27.789 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f95c6429-2cdf-47b8-bc2a-e614440050b8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f95c6429-2cdf-47b8-bc2a-e614440050b8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:28.365 [print] https://service.pdok.nl/rvo/beschermdegebieden/wetlands/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:28.367 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:28.367 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:28.368 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:28.369 [print] Beheer PDOK
57
* print operateson
0
04:51:28.369 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=19165027-a13a-4c19-9013-ec1fd191019d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:28.370 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:28.371 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:28.372 [print] "true";"true"
76
* eval db.writeln('"f95c6429-2cdf-47b8-bc2a-e614440050b8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"f95c6429-2cdf-47b8-bc2a-e614440050b8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f95c6429-2cdf-47b8-bc2a-e614440050b8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.334:82]
2931d583-9633-49d3-ad38-aabea82f6751
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:27.930 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2931d583-9633-49d3-ad38-aabea82f6751'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
555
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2931d583-9633-49d3-ad38-aabea82f6751'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:28.492 [print] https://service.pdok.nl/bzk/bro-hydrogeology/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:28.492 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:28.493 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:28.493 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:28.493 [print] Beheer PDOK
57
* print operateson
0
04:51:28.494 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:28.495 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:28.495 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:28.496 [print] "true";"true"
76
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.335:82]
9fd2324b-9e02-4eab-bd4a-8e2be4fcd545
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:27.957 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9fd2324b-9e02-4eab-bd4a-8e2be4fcd545'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
576
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9fd2324b-9e02-4eab-bd4a-8e2be4fcd545'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:28.539 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:28.540 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:28.541 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:28.541 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:28.541 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:28.542 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:28.543 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:28.544 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:28.545 [print] "true";"true";"true"
76
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.336:82]
47d416f8-76e8-441c-9b19-c8f889dfe62c
ms: 575
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:28.010 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '47d416f8-76e8-441c-9b19-c8f889dfe62c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '47d416f8-76e8-441c-9b19-c8f889dfe62c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:28.579 [print] https://service.pdok.nl/kadaster/gn/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:28.579 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:28.580 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:28.580 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:28.581 [print] Beheer PDOK
57
* print operateson
0
04:51:28.581 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:28.582 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:28.583 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:28.585 [print] "true";"true"
76
* eval db.writeln('"47d416f8-76e8-441c-9b19-c8f889dfe62c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"47d416f8-76e8-441c-9b19-c8f889dfe62c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"47d416f8-76e8-441c-9b19-c8f889dfe62c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.337:82]
037e55bd-a1dc-4fde-adfe-4610d3a3d5cb
ms: 575
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:28.375 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '037e55bd-a1dc-4fde-adfe-4610d3a3d5cb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '037e55bd-a1dc-4fde-adfe-4610d3a3d5cb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:28.946 [print] https://service.pdok.nl/cbs/pd/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:28.946 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:28.947 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:28.947 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:28.947 [print] Beheer PDOK
57
* print operateson
0
04:51:28.947 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:28.948 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:28.949 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:28.950 [print] "true";"true"
76
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.338:82]
5be1b57b-2cac-4119-92eb-700346543d47
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:28.498 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5be1b57b-2cac-4119-92eb-700346543d47'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5be1b57b-2cac-4119-92eb-700346543d47'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:29.051 [print] https:\/\/inspire.caris.nl\/geoserver\/boundary\/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:29.052 [print] ["OGC:WFS","INSPIRE Atom"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:29.052 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:29.052 [print] ["OGC:WFS","INSPIRE Atom"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:29.053 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:29.053 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dc528841-cb0f-4962-83bc-5c84ca6c4926#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:29.054 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:29.055 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Dataset is geharmoniseerd";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:29.056 [print] "true";"true"
76
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.339:82]
54122631-d343-40be-9c28-e44626b37a0e
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:28.548 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '54122631-d343-40be-9c28-e44626b37a0e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '54122631-d343-40be-9c28-e44626b37a0e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:29.107 [print] https://service.pdok.nl/cbs/hh/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:29.107 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:29.108 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:29.108 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:29.108 [print] Beheer PDOK
57
* print operateson
0
04:51:29.108 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:29.110 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:29.110 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:29.111 [print] "true";"true"
76
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.340:82]
95883512-2cc0-476f-8637-6d70709aefaf
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:28.588 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '95883512-2cc0-476f-8637-6d70709aefaf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '95883512-2cc0-476f-8637-6d70709aefaf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:29.142 [print] https://service.pdok.nl/rvo/habitatrichtlijntypen/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:29.143 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:29.143 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:29.143 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:29.144 [print] Beheer PDOK
57
* print operateson
0
04:51:29.144 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:29.145 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:29.146 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:29.146 [print] "true";"true"
76
* eval db.writeln('"95883512-2cc0-476f-8637-6d70709aefaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"95883512-2cc0-476f-8637-6d70709aefaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"95883512-2cc0-476f-8637-6d70709aefaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.341:82]
bbf2e6ed-e2c8-472e-bb97-e05d11177524
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:28.952 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bbf2e6ed-e2c8-472e-bb97-e05d11177524'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bbf2e6ed-e2c8-472e-bb97-e05d11177524'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:29.516 [print] https://service.pdok.nl/rvo/vogelrichtlijngebieds/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:29.516 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:29.517 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
2
04:51:29.519 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:29.520 [print] Beheer PDOK
57
* print operateson
0
04:51:29.520 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cbeaebc3-815a-48af-a978-0e16892865fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:29.521 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:29.522 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:29.523 [print] "true";"true"
76
* eval db.writeln('"bbf2e6ed-e2c8-472e-bb97-e05d11177524","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bbf2e6ed-e2c8-472e-bb97-e05d11177524","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bbf2e6ed-e2c8-472e-bb97-e05d11177524","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.342:82]
28e6b45e-7627-454d-99a0-4119bbe1678d
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:29.058 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '28e6b45e-7627-454d-99a0-4119bbe1678d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '28e6b45e-7627-454d-99a0-4119bbe1678d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:29.617 [print] https://service.pdok.nl/cbs/bestandbodemgebruik/2017/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:29.618 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:29.618 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:29.618 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:29.619 [print] Beheer PDOK
57
* print operateson
0
04:51:29.619 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9bf1ce1-5197-409e-b19e-340e50afafc4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:29.620 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:29.621 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:29.621 [print] "true";"true"
76
* eval db.writeln('"28e6b45e-7627-454d-99a0-4119bbe1678d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"28e6b45e-7627-454d-99a0-4119bbe1678d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"28e6b45e-7627-454d-99a0-4119bbe1678d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.343:82]
ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:29.113 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
555
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:29.674 [print] https://service.pdok.nl/provincies/begrenzingen-vergunde-ontgrondingsgebieden-zand-grindwinning/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:29.675 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:29.675 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:29.676 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:29.676 [print] Beheer PDOK
57
* print operateson
0
04:51:29.677 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=58e7dc38-a498-4852-b4ef-908f5baa9056#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:29.678 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:29.678 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:29.679 [print] "true";"true"
76
* eval db.writeln('"ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.344:82]
1196d687-f42c-4992-8030-1b875d62bc74
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:29.148 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1196d687-f42c-4992-8030-1b875d62bc74'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1196d687-f42c-4992-8030-1b875d62bc74'
0
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:29.718 [print] https://service.pdok.nl/rws/weggeg/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:29.719 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:29.719 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:29.719 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:29.720 [print] Beheer PDOK
57
* print operateson
0
04:51:29.720 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=abaf1e22-55aa-4a11-a855-7ac963e4a82b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:29.721 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:29.722 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:29.722 [print] "true";"true"
76
* eval db.writeln('"1196d687-f42c-4992-8030-1b875d62bc74","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1196d687-f42c-4992-8030-1b875d62bc74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1196d687-f42c-4992-8030-1b875d62bc74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.345:82]
d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:29.525 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:30.097 [print] https://service.pdok.nl/rvo/invasieve-exoten/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:30.097 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:30.098 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:30.098 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:30.099 [print] Beheer PDOK
57
* print operateson
0
04:51:30.099 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3703b249-a0eb-484e-ba7a-10e31a55bcec#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:30.100 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:30.101 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:30.101 [print] "true";"true"
76
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.346:82]
ddf33bff-8de3-4cca-b6f5-24d18daa502f
ms: 598
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:29.623 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ddf33bff-8de3-4cca-b6f5-24d18daa502f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
587
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ddf33bff-8de3-4cca-b6f5-24d18daa502f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:30.217 [print] https://service.pdok.nl/rws/kaderrichtlijnwater/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:30.217 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:30.218 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:30.218 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:30.219 [print] Beheer PDOK
57
* print operateson
0
04:51:30.219 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbeag#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbead#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:30.220 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:30.221 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.0";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:30.221 [print] "true";"true";"true"
76
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.347:82]
78155dcb-61fa-4c16-896f-637f5936ce6c
ms: 599
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:29.681 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '78155dcb-61fa-4c16-896f-637f5936ce6c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '78155dcb-61fa-4c16-896f-637f5936ce6c'
0
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
26
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:30.275 [print] https://service.pdok.nl/provincies/zwemwaterkwaliteit-provinciaal-rijkswateren/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:30.276 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:30.276 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:30.276 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:30.277 [print] Beheer PDOK
57
* print operateson
0
04:51:30.277 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=df5ee213-e1bd-433b-80f7-4ea20f493ca8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:30.278 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:30.279 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:30.280 [print] "true";"true"
76
* eval db.writeln('"78155dcb-61fa-4c16-896f-637f5936ce6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"78155dcb-61fa-4c16-896f-637f5936ce6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"78155dcb-61fa-4c16-896f-637f5936ce6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.348:82]
0fa448bb-332b-40b2-adab-13626b29bee6
ms: 635
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:29.724 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0fa448bb-332b-40b2-adab-13626b29bee6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
623
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0fa448bb-332b-40b2-adab-13626b29bee6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:30.354 [print] https://service.pdok.nl/kadaster/lu/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:30.354 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:30.355 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:30.355 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:30.356 [print] Beheer PDOK
57
* print operateson
0
04:51:30.356 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a88#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:30.357 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:30.358 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:30.359 [print] "true";"true"
76
* eval db.writeln('"0fa448bb-332b-40b2-adab-13626b29bee6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0fa448bb-332b-40b2-adab-13626b29bee6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0fa448bb-332b-40b2-adab-13626b29bee6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.349:82]
cc6f76b2-f28e-4eb3-8d89-d1a6a135c010
ms: 632
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:30.104 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cc6f76b2-f28e-4eb3-8d89-d1a6a135c010'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
621
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cc6f76b2-f28e-4eb3-8d89-d1a6a135c010'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:30.731 [print] https://service.pdok.nl/rws/nhi/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:30.732 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:30.732 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:30.732 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:30.733 [print] Beheer PDOK
57
* print operateson
0
04:51:30.733 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=710c381c-ab2d-45d5-a45d-af2eba811e5f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:30.734 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:30.735 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:30.736 [print] "true";"true"
76
* eval db.writeln('"cc6f76b2-f28e-4eb3-8d89-d1a6a135c010","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cc6f76b2-f28e-4eb3-8d89-d1a6a135c010","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cc6f76b2-f28e-4eb3-8d89-d1a6a135c010","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.350:82]
7c651e06-858e-4184-8de3-da9def9c6fd0
ms: 583
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:30.224 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7c651e06-858e-4184-8de3-da9def9c6fd0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
573
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c651e06-858e-4184-8de3-da9def9c6fd0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:30.802 [print] https://service.pdok.nl/bzk/bro-bodemkaart/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:30.803 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:30.803 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:30.804 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:30.804 [print] Beheer PDOK
57
* print operateson
0
04:51:30.804 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ed960299-a147-4c1a-bc57-41ff83a2264f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:30.805 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:30.806 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:30.807 [print] "true";"true"
76
* eval db.writeln('"7c651e06-858e-4184-8de3-da9def9c6fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7c651e06-858e-4184-8de3-da9def9c6fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7c651e06-858e-4184-8de3-da9def9c6fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.351:82]
b85d4a0a-c0f7-42f4-9316-b214d205ca38
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:30.282 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b85d4a0a-c0f7-42f4-9316-b214d205ca38'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b85d4a0a-c0f7-42f4-9316-b214d205ca38'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:30.847 [print] http://inspire.rdw.nl/www/download/rdw-inspire.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:30.848 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:30.848 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:30.848 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:30.849 [print] RDW
57
* print operateson
0
04:51:30.849 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fe2f9091-1962-4073-9e3b-3e4aeed488a5#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:30.850 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:30.851 [print] "Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Evaluated";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Gecontroleerd met INSPIRE verordening"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:30.851 [print] "true";"true"
76
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.352:82]
1f7db024-396a-4f3a-b2d9-d09996ea57d1
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:30.361 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1f7db024-396a-4f3a-b2d9-d09996ea57d1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1f7db024-396a-4f3a-b2d9-d09996ea57d1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:30.916 [print] https://service.pdok.nl/rws/richtlijnoverstromingsrisico/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:30.917 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:30.917 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:30.917 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:30.918 [print] Beheer PDOK
57
* print operateson
0
04:51:30.918 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=0e6bbc35-489b-4209-8e5c-41e36b9d0351#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=babb8ae8-533f-4fd1-be66-e8dcccf20b33#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=155f4288-e7c6-4278-8145-0e8cb5ffe52d#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:30.919 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:30.919 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:30.920 [print] "true";"true"
76
* eval db.writeln('"1f7db024-396a-4f3a-b2d9-d09996ea57d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1f7db024-396a-4f3a-b2d9-d09996ea57d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1f7db024-396a-4f3a-b2d9-d09996ea57d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.353:82]
d624bfd0-8f21-44c4-a22c-0f0877a539fc
ms: 603
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:30.738 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd624bfd0-8f21-44c4-a22c-0f0877a539fc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
591
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd624bfd0-8f21-44c4-a22c-0f0877a539fc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:31.335 [print] https://service.pdok.nl/provincies/geluidzones-rondom-vliegvelden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:31.336 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:31.337 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:31.337 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:31.337 [print] Beheer PDOK
57
* print operateson
0
04:51:31.338 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=41023936-009d-48ec-a90d-c966895463c1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:31.339 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:31.340 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:31.341 [print] "true";"true"
76
* eval db.writeln('"d624bfd0-8f21-44c4-a22c-0f0877a539fc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d624bfd0-8f21-44c4-a22c-0f0877a539fc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d624bfd0-8f21-44c4-a22c-0f0877a539fc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.354:82]
101304f0-2cf2-4ce0-aa23-cd7e4000fbba
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:30.809 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '101304f0-2cf2-4ce0-aa23-cd7e4000fbba'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
571
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '101304f0-2cf2-4ce0-aa23-cd7e4000fbba'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:31.386 [print] https://service.pdok.nl/kadaster/sr/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:31.386 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:31.387 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:31.387 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:31.388 [print] Beheer PDOK
57
* print operateson
0
04:51:31.388 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:31.389 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:31.389 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:31.390 [print] "true";"true"
76
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.355:82]
0d7ca7bc-99de-4539-af33-70b206f29355
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:30.854 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0d7ca7bc-99de-4539-af33-70b206f29355'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0d7ca7bc-99de-4539-af33-70b206f29355'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:31.409 [print] https://service.pdok.nl/kadaster/adressen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:31.410 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:31.410 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:31.410 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:31.411 [print] Beheer PDOK
57
* print operateson
0
04:51:31.411 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:31.412 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:31.413 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:31.413 [print] "true";"true"
76
* eval db.writeln('"0d7ca7bc-99de-4539-af33-70b206f29355","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0d7ca7bc-99de-4539-af33-70b206f29355","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0d7ca7bc-99de-4539-af33-70b206f29355","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.356:82]
52d0313e-0d2b-44b4-b51e-d9e504307f70
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:30.922 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '52d0313e-0d2b-44b4-b51e-d9e504307f70'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '52d0313e-0d2b-44b4-b51e-d9e504307f70'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:31.484 [print] https://service.pdok.nl/bzk/bro-environmental-monitoring-facilities/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:31.484 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:31.485 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:31.485 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:31.485 [print] Beheer PDOK
57
* print operateson
0
04:51:31.486 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:31.487 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:31.487 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:31.488 [print] "true";"true"
76
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.357:82]
46873d16-6835-48c4-b47f-134ab0cb31fa
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:31.343 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '46873d16-6835-48c4-b47f-134ab0cb31fa'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '46873d16-6835-48c4-b47f-134ab0cb31fa'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:31.919 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:31.919 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:31.920 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:31.920 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:31.921 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:31.921 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:31.923 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:31.923 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:31.924 [print] "false";"false"
76
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.358:82]
0ae368b9-af1b-4b66-ba87-8d2c8ade22b3
ms: 567
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:31.392 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0ae368b9-af1b-4b66-ba87-8d2c8ade22b3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0ae368b9-af1b-4b66-ba87-8d2c8ade22b3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:31.955 [print] https://service.pdok.nl/cbs/bestandbodemgebruik/2010/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:31.956 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:31.956 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:31.956 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:31.957 [print] Beheer PDOK
57
* print operateson
0
04:51:31.957 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=bbece924-9aab-4e00-8392-bce36b8f494e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:31.958 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:31.959 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:31.959 [print] "true";"true"
76
* eval db.writeln('"0ae368b9-af1b-4b66-ba87-8d2c8ade22b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0ae368b9-af1b-4b66-ba87-8d2c8ade22b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0ae368b9-af1b-4b66-ba87-8d2c8ade22b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.359:82]
559f7f5b-44fc-4003-9fb5-4d8c9aff6060
ms: 579
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:31.415 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '559f7f5b-44fc-4003-9fb5-4d8c9aff6060'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '559f7f5b-44fc-4003-9fb5-4d8c9aff6060'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:31.990 [print] https://service.pdok.nl/kadaster/tn/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:31.991 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:31.991 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:31.991 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:31.992 [print] Beheer PDOK
57
* print operateson
0
04:51:31.992 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=6c06740d-058f-4a12-bb3f-bf68efd03d09#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8f45b8ef-0ce8-463a-9059-5efdcecb785c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:31.993 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:31.994 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:31.994 [print] "true";"true"
76
* eval db.writeln('"559f7f5b-44fc-4003-9fb5-4d8c9aff6060","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"559f7f5b-44fc-4003-9fb5-4d8c9aff6060","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"559f7f5b-44fc-4003-9fb5-4d8c9aff6060","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.360:82]
91b1f8ca-63a0-4ce6-b7e1-456ee6945638
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:31.490 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '91b1f8ca-63a0-4ce6-b7e1-456ee6945638'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
566
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '91b1f8ca-63a0-4ce6-b7e1-456ee6945638'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:32.062 [print] https://service.pdok.nl/rvo/schelpdierpercelen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:32.062 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:32.063 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:32.063 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:32.063 [print] Beheer PDOK
57
* print operateson
0
04:51:32.063 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b4e95a-12d7-4c74-933c-cb267cfe0bcf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:32.065 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:32.065 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:32.066 [print] "true";"true"
76
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.361:82]
838d49cd-bcec-4e92-9172-fabb96c21b3d
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:31.926 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '838d49cd-bcec-4e92-9172-fabb96c21b3d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '838d49cd-bcec-4e92-9172-fabb96c21b3d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:32.489 [print] https://service.pdok.nl/kadaster/wkpb/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:32.490 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:32.490 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:32.490 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:32.491 [print] Beheer PDOK
57
* print operateson
0
04:51:32.491 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5d2ffea6-e7c5-4e29-9474-c13718828779#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:32.492 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:32.493 [print] "Conform verordening";"Conform technische specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:32.493 [print] "true";"true"
76
* eval db.writeln('"838d49cd-bcec-4e92-9172-fabb96c21b3d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"838d49cd-bcec-4e92-9172-fabb96c21b3d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"838d49cd-bcec-4e92-9172-fabb96c21b3d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.362:82]
2751ba40-5100-4186-81be-b7fdee95b49c
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:31.962 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2751ba40-5100-4186-81be-b7fdee95b49c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2751ba40-5100-4186-81be-b7fdee95b49c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:32.529 [print] https://service.pdok.nl/rvo/wetlands/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:32.529 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:32.530 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:32.530 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:32.530 [print] Beheer PDOK
57
* print operateson
0
04:51:32.530 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07d73b60-dfd6-4c54-9c82-9fac70c6c48e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:32.532 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:32.532 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:32.533 [print] "true";"true"
76
* eval db.writeln('"2751ba40-5100-4186-81be-b7fdee95b49c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2751ba40-5100-4186-81be-b7fdee95b49c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2751ba40-5100-4186-81be-b7fdee95b49c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.363:82]
fbe544b6-6e6f-43a0-80b9-ced1df78c434
ms: 580
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:31.997 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fbe544b6-6e6f-43a0-80b9-ced1df78c434'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fbe544b6-6e6f-43a0-80b9-ced1df78c434'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:32.572 [print] https:\/\/data.rivm.nl\/geo\/inspire\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:32.573 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:32.573 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:32.573 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:32.574 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:32.574 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:32.575 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:32.576 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:32.576 [print] "false";"false"
76
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.364:82]
37308f90-e619-4b62-ae9e-e656bb3f1649
ms: 551
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:32.068 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '37308f90-e619-4b62-ae9e-e656bb3f1649'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '37308f90-e619-4b62-ae9e-e656bb3f1649'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:32.615 [print] https:\/\/data.rivm.nl\/geo\/inspire\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:32.615 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:32.616 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:32.616 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:32.617 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:32.617 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:32.618 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:32.618 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:32.619 [print] "false";"false"
76
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.365:82]
72f30ca1-3b80-4020-b9ed-301b1a88df39
ms: 642
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:32.495 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '72f30ca1-3b80-4020-b9ed-301b1a88df39'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
631
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '72f30ca1-3b80-4020-b9ed-301b1a88df39'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:33.133 [print] https:\/\/data.rivm.nl\/geo\/inspire\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:33.133 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:33.134 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:33.134 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:33.135 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:33.135 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=588a4cb1-b442-4ac1-87e4-40401e353166#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:33.136 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:33.137 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:33.138 [print] "false";"false"
76
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.366:82]
dc9fbc85-1263-4a1b-b001-7be701a6039e
ms: 623
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:32.535 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dc9fbc85-1263-4a1b-b001-7be701a6039e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
607
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dc9fbc85-1263-4a1b-b001-7be701a6039e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:33.149 [print] https://service.pdok.nl/kadaster/plu/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:33.150 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:33.151 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:33.151 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:33.152 [print] Beheer PDOK
57
* print operateson
0
04:51:33.153 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a36#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:33.154 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:33.155 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:33.158 [print] "true";"true"
76
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.367:82]
f59357eb-185f-42a5-b465-90bfa6e3e416
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:32.579 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f59357eb-185f-42a5-b465-90bfa6e3e416'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
571
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f59357eb-185f-42a5-b465-90bfa6e3e416'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:33.156 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:33.156 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:33.157 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:33.157 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:33.158 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:33.158 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:33.159 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:33.160 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:33.160 [print] "false";"false"
76
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.368:82]
252db472-201d-430b-9c55-4d37563787bc
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:32.621 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '252db472-201d-430b-9c55-4d37563787bc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '252db472-201d-430b-9c55-4d37563787bc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:33.189 [print] https://service.pdok.nl/rws/vaarwegmarkeringennld/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:33.190 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:33.190 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:33.191 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:33.193 [print] Beheer PDOK
57
* print operateson
0
04:51:33.193 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=be1b1514-8d1f-48e1-9624-fee9b784138b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:33.194 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:33.195 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:33.195 [print] "true";"true"
76
* eval db.writeln('"252db472-201d-430b-9c55-4d37563787bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"252db472-201d-430b-9c55-4d37563787bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"252db472-201d-430b-9c55-4d37563787bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.369:82]
5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:33.140 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:33.706 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:33.706 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:33.707 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:33.708 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:33.708 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:33.709 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:33.710 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:33.711 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:33.712 [print] "false";"false"
76
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.370:82]
a931e334-b752-4935-8a98-00eddc443789
ms: 632
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:33.167 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a931e334-b752-4935-8a98-00eddc443789'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
621
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a931e334-b752-4935-8a98-00eddc443789'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:33.795 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:33.796 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:33.796 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:33.796 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:33.797 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:33.797 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:33.798 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:33.799 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:33.800 [print] "false";"false"
76
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.371:82]
08a784fe-0da8-4ede-bec9-c28fa81fc11d
ms: 585
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:33.163 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '08a784fe-0da8-4ede-bec9-c28fa81fc11d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
575
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '08a784fe-0da8-4ede-bec9-c28fa81fc11d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:33.743 [print] https://service.pdok.nl/provincies/provinciaal-landschapsbeleid/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:33.744 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:33.744 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:33.744 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:33.745 [print] Beheer PDOK
57
* print operateson
0
04:51:33.745 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=60a2a7c2-d5b3-4ad5-b562-c448695357fb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:33.746 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:33.747 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:33.747 [print] "true";"true"
76
* eval db.writeln('"08a784fe-0da8-4ede-bec9-c28fa81fc11d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"08a784fe-0da8-4ede-bec9-c28fa81fc11d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"08a784fe-0da8-4ede-bec9-c28fa81fc11d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.372:82]
c21c6bf5-8899-4b46-8986-0f65eca05ed0
ms: 633
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:33.198 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c21c6bf5-8899-4b46-8986-0f65eca05ed0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
622
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c21c6bf5-8899-4b46-8986-0f65eca05ed0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:33.827 [print] https://service.pdok.nl/rws/richtlijnstedelijkafvalwater/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:33.828 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:33.828 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:33.828 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:33.829 [print] Beheer PDOK
57
* print operateson
0
04:51:33.829 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=cc931834-5f9a-4106-a3a3-d5bf553b2675#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=07d78f5e-f4c4-4c92-b866-94eb2cb38516#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=917b5ba0-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=11a98cc2-2e64-4f05-ae16-b7677f8054ad#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:33.830 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:33.831 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:33.831 [print] "true";"true"
76
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.373:82]
71b8214f-7525-45bd-bdee-2c60f32a1725
ms: 567
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:33.715 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '71b8214f-7525-45bd-bdee-2c60f32a1725'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '71b8214f-7525-45bd-bdee-2c60f32a1725'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:34.278 [print] https://service.pdok.nl/rws/nwbwegen/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:34.279 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:34.279 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:34.279 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:34.280 [print] Beheer PDOK
57
* print operateson
0
04:51:34.280 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a9b7026e-0a81-4813-93bd-ba49e6f28502#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a9b7026e-0a81-4813-93bd-ba49e6f28502#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:34.281 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:34.281 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:34.282 [print] "true";"true"
76
* eval db.writeln('"71b8214f-7525-45bd-bdee-2c60f32a1725","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"71b8214f-7525-45bd-bdee-2c60f32a1725","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"71b8214f-7525-45bd-bdee-2c60f32a1725","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.374:82]
b914aa84-1a15-4d6c-950e-00c739946029
ms: 617
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:33.750 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b914aa84-1a15-4d6c-950e-00c739946029'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
608
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b914aa84-1a15-4d6c-950e-00c739946029'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:34.363 [print] https://service.pdok.nl/rvo/restwarmte/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:34.364 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:34.364 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:34.364 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:34.365 [print] Beheer PDOK
57
* print operateson
0
04:51:34.365 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d6b85d84-cdb9-4a6e-b799-cf8826e22a94#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:34.366 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:34.366 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:34.367 [print] "true";"true"
76
* eval db.writeln('"b914aa84-1a15-4d6c-950e-00c739946029","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b914aa84-1a15-4d6c-950e-00c739946029","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b914aa84-1a15-4d6c-950e-00c739946029","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.375:82]
7a748a59-36f4-475b-9647-402b5ce89a1c
ms: 604
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:33.802 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7a748a59-36f4-475b-9647-402b5ce89a1c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
594
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7a748a59-36f4-475b-9647-402b5ce89a1c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:34.402 [print] https://service.pdok.nl/kadaster/lc/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:34.403 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:34.403 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:34.403 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:34.404 [print] Beheer PDOK
57
* print operateson
0
04:51:34.404 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:34.405 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:34.406 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:34.406 [print] "true";"true"
76
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.376:82]
3262e40f-13d9-47a5-97c0-e461cf837a87
ms: 630
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:33.834 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3262e40f-13d9-47a5-97c0-e461cf837a87'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
620
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3262e40f-13d9-47a5-97c0-e461cf837a87'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:34.460 [print] https://service.pdok.nl/rvo/beschermdegebieden/natura2000/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:34.460 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:34.461 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:34.461 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:34.461 [print] Beheer PDOK
57
* print operateson
0
04:51:34.461 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=280ed37a-b8d2-4ac5-8567-04d84fad3a41#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:34.462 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:34.463 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:34.463 [print] "true";"true"
76
* eval db.writeln('"3262e40f-13d9-47a5-97c0-e461cf837a87","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3262e40f-13d9-47a5-97c0-e461cf837a87","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3262e40f-13d9-47a5-97c0-e461cf837a87","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.377:82]
224d93f6-0e4e-41fe-8424-1ab11a6c55ed
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:34.284 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '224d93f6-0e4e-41fe-8424-1ab11a6c55ed'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '224d93f6-0e4e-41fe-8424-1ab11a6c55ed'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:34.838 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:34.839 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:34.840 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:34.840 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:34.840 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:34.840 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:34.842 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:34.842 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:34.843 [print] "true";"true";"true"
76
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.378:82]
5255c080-5f4e-4f7a-8a2c-6ac9d0103288
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:34.369 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5255c080-5f4e-4f7a-8a2c-6ac9d0103288'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5255c080-5f4e-4f7a-8a2c-6ac9d0103288'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:34.934 [print] https:\/\/data.rivm.nl\/geo\/inspire\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:34.934 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:34.935 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:34.935 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:34.936 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
1
04:51:34.936 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:34.938 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:34.938 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:34.939 [print] "true";"true"
76
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.379:82]
2e2c3c53-7987-4026-99fd-df107b1b9a1c
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:34.409 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2e2c3c53-7987-4026-99fd-df107b1b9a1c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2e2c3c53-7987-4026-99fd-df107b1b9a1c'
0
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:34.967 [print] https://service.pdok.nl/rws/nwbvaarwegen/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:34.968 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:34.968 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:34.969 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:34.969 [print] Beheer PDOK
57
* print operateson
1
04:51:34.970 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=00d8c7c8-98ff-4b06-8f53-b44216e6e75c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:34.971 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:34.972 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:34.972 [print] "true";"true"
76
* eval db.writeln('"2e2c3c53-7987-4026-99fd-df107b1b9a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2e2c3c53-7987-4026-99fd-df107b1b9a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2e2c3c53-7987-4026-99fd-df107b1b9a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.380:82]
e222648d-d19e-4a99-a67d-2af1c9aabd75
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:34.466 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e222648d-d19e-4a99-a67d-2af1c9aabd75'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
579
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e222648d-d19e-4a99-a67d-2af1c9aabd75'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:35.050 [print] https://service.pdok.nl/kadaster/cp/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:35.051 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:35.051 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:35.052 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:35.052 [print] Beheer PDOK
57
* print operateson
0
04:51:35.052 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e80ad426-1392-4349-9f80-14dae5f1bf57#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:35.053 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:35.054 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:35.055 [print] "true";"true"
76
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.381:82]
7a4c7031-08cf-4bbf-b3dc-179a457b0674
ms: 580
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:34.845 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7a4c7031-08cf-4bbf-b3dc-179a457b0674'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7a4c7031-08cf-4bbf-b3dc-179a457b0674'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:35.399 [print] https://service.pdok.nl/cbs/statisticalunitsvector/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:35.400 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:35.400 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:35.400 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:35.401 [print] Beheer PDOK
57
* print operateson
0
04:51:35.401 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=10d1153e-778f-4995-9b6c-7c69b196cccb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:35.402 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
21
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:35.424 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:35.425 [print] "true";"true"
76
* eval db.writeln('"7a4c7031-08cf-4bbf-b3dc-179a457b0674","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7a4c7031-08cf-4bbf-b3dc-179a457b0674","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7a4c7031-08cf-4bbf-b3dc-179a457b0674","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.382:82]
2fa191f3-55df-4016-bb08-8da445b952fe
ms: 555
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:34.941 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2fa191f3-55df-4016-bb08-8da445b952fe'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2fa191f3-55df-4016-bb08-8da445b952fe'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:35.492 [print] https://service.pdok.nl/rvo/windkaart/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:35.492 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:35.493 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:35.493 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:35.493 [print] Beheer PDOK
57
* print operateson
0
04:51:35.493 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d845cef6-0e23-4212-a951-b69763e39ef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:35.495 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:35.495 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:35.496 [print] "true";"true"
76
* eval db.writeln('"2fa191f3-55df-4016-bb08-8da445b952fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2fa191f3-55df-4016-bb08-8da445b952fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2fa191f3-55df-4016-bb08-8da445b952fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.383:82]
7c664a91-1aa2-4923-9d17-6a43e4075f47
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:34.975 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7c664a91-1aa2-4923-9d17-6a43e4075f47'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
578
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c664a91-1aa2-4923-9d17-6a43e4075f47'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:35.559 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-Territoriale-Zee-Noordzee-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:35.559 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:35.560 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:35.560 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:35.561 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:35.561 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7fed469a-77e1-4545-a4cb-eedf389d851f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:35.562 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:35.562 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:35.563 [print] "true";"true"
76
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.384:82]
8eb296dd-0e1d-4ed9-be24-297149d770f8
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:35.057 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8eb296dd-0e1d-4ed9-be24-297149d770f8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8eb296dd-0e1d-4ed9-be24-297149d770f8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:35.628 [print] https://service.pdok.nl/cbs/bestandbodemgebruik/2015/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:35.629 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:35.629 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:35.629 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:35.630 [print] Beheer PDOK
57
* print operateson
0
04:51:35.630 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d3dd6d2-2d2b-4b5f-9e30-86e19ed77a56#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:35.631 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:35.632 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:35.633 [print] "true";"true"
76
* eval db.writeln('"8eb296dd-0e1d-4ed9-be24-297149d770f8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8eb296dd-0e1d-4ed9-be24-297149d770f8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8eb296dd-0e1d-4ed9-be24-297149d770f8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.385:82]
fa29a28a-57ec-4e4c-82f3-08ddeaf19e61
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:35.427 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fa29a28a-57ec-4e4c-82f3-08ddeaf19e61'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fa29a28a-57ec-4e4c-82f3-08ddeaf19e61'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:35.994 [print] https://service.pdok.nl/rws/digitaaltopografischbestand/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:35.995 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:35.995 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:35.996 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:35.996 [print] Beheer PDOK
57
* print operateson
0
04:51:35.996 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b137b8-2317-42c2-aced-204c4216d68d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:35.997 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:35.998 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:35.998 [print] "true";"true"
76
* eval db.writeln('"fa29a28a-57ec-4e4c-82f3-08ddeaf19e61","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fa29a28a-57ec-4e4c-82f3-08ddeaf19e61","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fa29a28a-57ec-4e4c-82f3-08ddeaf19e61","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.386:82]
32e0942d-729d-4021-bdc3-17147ddaf797
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:35.498 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '32e0942d-729d-4021-bdc3-17147ddaf797'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
568
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '32e0942d-729d-4021-bdc3-17147ddaf797'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:36.072 [print] https://service.pdok.nl/rvo/potentiekaart-reststromen/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:36.073 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:36.073 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:36.073 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:36.074 [print] Beheer PDOK
57
* print operateson
0
04:51:36.074 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=24eb504e-f5f3-4ecf-b760-cc5630e82a57#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=6ea55ec4-f312-40ef-9935-68806e61b496#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=af784610-df36-4d40-bac0-23d8e728999f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=34dacd72-d2fb-4e28-844d-73d3b9c3fef2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=419b85e5-04ee-4cc9-b910-bc58594a943a#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=119f7512-a71e-4d1a-82e7-7a2b63f9338b#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:36.075 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:36.076 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:36.076 [print] "true";"true"
76
* eval db.writeln('"32e0942d-729d-4021-bdc3-17147ddaf797","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"32e0942d-729d-4021-bdc3-17147ddaf797","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"32e0942d-729d-4021-bdc3-17147ddaf797","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.387:82]
0080a9ce-b836-45bc-8fdf-07dcbe97101d
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:35.566 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0080a9ce-b836-45bc-8fdf-07dcbe97101d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0080a9ce-b836-45bc-8fdf-07dcbe97101d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:36.137 [print] https://service.pdok.nl/rce/ps-ch/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:36.138 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:36.138 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:36.139 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:36.139 [print] Beheer PDOK
57
* print operateson
0
04:51:36.139 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:36.141 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:36.141 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:36.142 [print] "true";"true"
76
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.388:82]
13e4dff0-1e80-11e2-81c1-0800200c9a66
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:35.635 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '13e4dff0-1e80-11e2-81c1-0800200c9a66'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '13e4dff0-1e80-11e2-81c1-0800200c9a66'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:36.204 [print] https://www.gdngeoservices.nl/inspire/downloads/services.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:36.205 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:36.206 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:36.206 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:36.207 [print] TNO Geologische Dienst Nederland
57
* print operateson
1
04:51:36.208 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=11a292bd-9022-4a9f-b1bf-02f5c89ad74a&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:36.209 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:36.210 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:36.211 [print] "true";"true"
76
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.389:82]
243c6401-9ed1-4cdd-b9a7-caff08813ce4
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:36.001 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '243c6401-9ed1-4cdd-b9a7-caff08813ce4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
566
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '243c6401-9ed1-4cdd-b9a7-caff08813ce4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:36.572 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-EEZ-volgens-UNCLOS-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:36.573 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:36.574 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:36.574 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:36.574 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:36.574 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3296af93-cc8c-4a24-9356-1f68a57db712#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:36.575 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:36.576 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:36.577 [print] "true";"true"
76
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.390:82]
efb5222c-112a-4c57-9bbf-f2af918cb9b5
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:36.079 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'efb5222c-112a-4c57-9bbf-f2af918cb9b5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'efb5222c-112a-4c57-9bbf-f2af918cb9b5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:36.608 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-aansluitende-zone-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:36.609 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:36.609 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:36.609 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:36.610 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:36.610 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=424c1d5c-063b-4372-99f5-c85786b4a9d0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:36.611 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:36.612 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:36.612 [print] "true";"true"
76
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.391:82]
fe4b36d5-8f69-403f-b084-ce010a4ae3b2
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:36.144 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fe4b36d5-8f69-403f-b084-ce010a4ae3b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fe4b36d5-8f69-403f-b084-ce010a4ae3b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:36.700 [print] https://service.pdok.nl/rvo/natura2000/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:36.700 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:36.701 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:36.701 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:36.701 [print] Beheer PDOK
57
* print operateson
0
04:51:36.701 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8829e5dd-c861-4639-a6c8-fdbb6e3440d2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:36.702 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:36.703 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:36.703 [print] "false";"false"
76
* eval db.writeln('"fe4b36d5-8f69-403f-b084-ce010a4ae3b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fe4b36d5-8f69-403f-b084-ce010a4ae3b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fe4b36d5-8f69-403f-b084-ce010a4ae3b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.392:82]
641a0f48-872b-4470-b130-e3d28e6bfdfb
ms: 545
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:36.214 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '641a0f48-872b-4470-b130-e3d28e6bfdfb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
535
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '641a0f48-872b-4470-b130-e3d28e6bfdfb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:36.755 [print] https://service.pdok.nl/rws/richtlijnmarienestrategienederland/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:36.756 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:36.756 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:36.756 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:36.757 [print] Beheer PDOK
57
* print operateson
0
04:51:36.757 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=353108a0-f0f8-4f8e-9d0e-60f18dfda169#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a33c92d0-e29b-43cb-b681-f942ef597331#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=604d241d-6792-4286-bbef-44b2ce5c38c1#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:36.758 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:36.758 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:36.759 [print] "true";"true"
76
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.393:82]
aa31349f-9607-4fdb-83ac-732f0b942adc
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:36.579 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'aa31349f-9607-4fdb-83ac-732f0b942adc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
560
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'aa31349f-9607-4fdb-83ac-732f0b942adc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:37.145 [print] https://service.pdok.nl/provincies/grondwaterbeschermingsgebieden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:37.146 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:37.146 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:37.146 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:37.147 [print] Beheer PDOK
57
* print operateson
0
04:51:37.147 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=666554ed-5106-487d-b4bf-69fbd888a6d7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:37.148 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:37.148 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:37.149 [print] "true";"true"
76
* eval db.writeln('"aa31349f-9607-4fdb-83ac-732f0b942adc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"aa31349f-9607-4fdb-83ac-732f0b942adc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"aa31349f-9607-4fdb-83ac-732f0b942adc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.394:82]
88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6
ms: 579
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:36.616 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
568
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:37.190 [print] https://service.pdok.nl/kadaster/hy/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:37.191 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:37.191 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:37.191 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:37.192 [print] Beheer PDOK
57
* print operateson
0
04:51:37.192 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:37.194 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:37.194 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:37.195 [print] "true";"true"
76
* eval db.writeln('"88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.395:82]
bb85e473-c04a-42a6-9fdc-f0bb0239327e
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:36.706 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bb85e473-c04a-42a6-9fdc-f0bb0239327e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bb85e473-c04a-42a6-9fdc-f0bb0239327e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:37.263 [print] https://service.pdok.nl/kadaster/bu/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:37.263 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:37.264 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:37.264 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:37.264 [print] Beheer PDOK
57
* print operateson
0
04:51:37.265 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b4ae622c-6201-49d8-bd2e-f7fce9206a1e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:37.266 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:37.266 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:37.267 [print] "true";"true"
76
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.396:82]
dc250a60-0ac6-487f-8a42-cb4f67582f34
ms: 551
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:36.761 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dc250a60-0ac6-487f-8a42-cb4f67582f34'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dc250a60-0ac6-487f-8a42-cb4f67582f34'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:37.308 [print] https://service.pdok.nl/kadaster/ad/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:37.308 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:37.309 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:37.309 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:37.309 [print] Beheer PDOK
57
* print operateson
0
04:51:37.309 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a5f961e9-ebdd-41e2-b8e8-ab33ed340a83#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:37.310 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:37.311 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:37.312 [print] "true";"true"
76
* eval db.writeln('"dc250a60-0ac6-487f-8a42-cb4f67582f34","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dc250a60-0ac6-487f-8a42-cb4f67582f34","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dc250a60-0ac6-487f-8a42-cb4f67582f34","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.397:82]
88a337a9-bed3-4d79-80fa-ff4b45990d7d
ms: 601
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:37.151 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '88a337a9-bed3-4d79-80fa-ff4b45990d7d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
590
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88a337a9-bed3-4d79-80fa-ff4b45990d7d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:37.747 [print] https://service.pdok.nl/cbs/wijkenbuurten/2020/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:37.748 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:37.748 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:37.749 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:37.749 [print] Beheer PDOK
57
* print operateson
0
04:51:37.750 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:37.751 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:37.751 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:37.752 [print] "true";"true"
76
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.398:82]
68a7e4c1-0073-4a1a-a6df-084d2badf45a
ms: 629
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:37.197 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68a7e4c1-0073-4a1a-a6df-084d2badf45a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
599
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68a7e4c1-0073-4a1a-a6df-084d2badf45a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
20
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:37.822 [print] https://service.pdok.nl/cbs/wijkenbuurten/2019/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:37.823 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:37.823 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:37.823 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:37.824 [print] Beheer PDOK
57
* print operateson
0
04:51:37.824 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:37.825 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:37.826 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:37.826 [print] "true";"true"
76
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.399:82]
1619798e-4254-4b85-8562-dc2a25338f48
ms: 598
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:37.269 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1619798e-4254-4b85-8562-dc2a25338f48'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
587
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1619798e-4254-4b85-8562-dc2a25338f48'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:37.862 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:37.863 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:37.863 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:37.863 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:37.864 [print] Beheer PDOK
57
* print operateson
0
04:51:37.864 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:37.865 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:37.866 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:37.867 [print] "true";"true"
76
* eval db.writeln('"1619798e-4254-4b85-8562-dc2a25338f48","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1619798e-4254-4b85-8562-dc2a25338f48","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1619798e-4254-4b85-8562-dc2a25338f48","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.400:82]
d84b0a71-4460-4e16-8a7e-5507f2e6bcbf
ms: 598
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:37.314 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd84b0a71-4460-4e16-8a7e-5507f2e6bcbf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
588
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd84b0a71-4460-4e16-8a7e-5507f2e6bcbf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:37.907 [print] https://service.pdok.nl/bzk/bro-grondwaterspiegeldiepte/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:37.908 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:37.908 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:37.909 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:37.909 [print] Beheer PDOK
57
* print operateson
0
04:51:37.909 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b756dabe-a331-42cd-b45e-f61828ee4534#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:37.910 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:37.911 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:37.911 [print] "true";"true"
76
* eval db.writeln('"d84b0a71-4460-4e16-8a7e-5507f2e6bcbf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d84b0a71-4460-4e16-8a7e-5507f2e6bcbf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d84b0a71-4460-4e16-8a7e-5507f2e6bcbf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.401:82]
0017219b-fb75-47aa-a6bf-496f2514e545
ms: 617
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:37.754 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0017219b-fb75-47aa-a6bf-496f2514e545'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
606
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0017219b-fb75-47aa-a6bf-496f2514e545'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:38.366 [print] https://service.pdok.nl/provincies/aardkundige-waarden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:38.367 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:38.367 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:38.367 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:38.368 [print] Beheer PDOK
57
* print operateson
0
04:51:38.368 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f002bfc5-7d87-46b6-819e-8415422b65c9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:38.369 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:38.370 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:38.371 [print] "true";"true"
76
* eval db.writeln('"0017219b-fb75-47aa-a6bf-496f2514e545","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0017219b-fb75-47aa-a6bf-496f2514e545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0017219b-fb75-47aa-a6bf-496f2514e545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.402:82]
dbca1cca-a5f9-497f-9947-2638244b194b
ms: 597
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:37.829 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dbca1cca-a5f9-497f-9947-2638244b194b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
583
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dbca1cca-a5f9-497f-9947-2638244b194b'
0
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:38.418 [print] https://service.pdok.nl/kvk/overheidsdiensten/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:38.419 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:38.419 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:38.419 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:38.420 [print] Beheer PDOK
57
* print operateson
0
04:51:38.420 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c935f2ab-9b65-4dc4-94a0-73aeb840a941#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
4
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:38.424 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:38.425 [print] "Conform verordening";"Conform technische specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:38.426 [print] "true";"true"
76
* eval db.writeln('"dbca1cca-a5f9-497f-9947-2638244b194b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dbca1cca-a5f9-497f-9947-2638244b194b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dbca1cca-a5f9-497f-9947-2638244b194b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.403:82]
f5a34c65-6c48-4996-8f95-ba2206d1ecb7
ms: 583
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:37.869 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f5a34c65-6c48-4996-8f95-ba2206d1ecb7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
573
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f5a34c65-6c48-4996-8f95-ba2206d1ecb7'
0
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:38.448 [print] https://service.pdok.nl/rvo/ps-cdda/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:38.449 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:38.449 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:38.449 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:38.450 [print] Beheer PDOK
57
* print operateson
0
04:51:38.450 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3387ef8a-9237-453a-aa4e-585d1e193550#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:38.451 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:38.451 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:38.452 [print] "true";"true"
76
* eval db.writeln('"f5a34c65-6c48-4996-8f95-ba2206d1ecb7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f5a34c65-6c48-4996-8f95-ba2206d1ecb7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f5a34c65-6c48-4996-8f95-ba2206d1ecb7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.404:82]
7358a8bc-42db-4eeb-9b3e-a081f7803b45
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:37.914 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7358a8bc-42db-4eeb-9b3e-a081f7803b45'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
573
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7358a8bc-42db-4eeb-9b3e-a081f7803b45'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:38.493 [print] https://service.pdok.nl/kadaster/au/atom/v2_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:38.493 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:38.494 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:38.494 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:38.494 [print] Beheer PDOK
57
* print operateson
0
04:51:38.494 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7dd1fd45-ace5-41e0-93a6-64e3be231717#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:38.495 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:38.496 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:38.496 [print] "true";"true"
76
* eval db.writeln('"7358a8bc-42db-4eeb-9b3e-a081f7803b45","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7358a8bc-42db-4eeb-9b3e-a081f7803b45","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7358a8bc-42db-4eeb-9b3e-a081f7803b45","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.405:82]
6da29d3a-0e42-4b74-81ef-da707991ae07
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:38.373 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6da29d3a-0e42-4b74-81ef-da707991ae07'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
560
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6da29d3a-0e42-4b74-81ef-da707991ae07'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:38.940 [print] https://service.pdok.nl/cbs/wijkenbuurten/2022/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:38.940 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:38.941 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:38.941 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:38.941 [print] Beheer PDOK
57
* print operateson
0
04:51:38.941 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=70c52fd8-6b2e-42aa-873a-742711903243#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:38.942 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:38.943 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:38.944 [print] "true";"true"
76
* eval db.writeln('"6da29d3a-0e42-4b74-81ef-da707991ae07","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6da29d3a-0e42-4b74-81ef-da707991ae07","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6da29d3a-0e42-4b74-81ef-da707991ae07","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.406:82]
8fb3a06d-af1a-4da9-a769-41edf3591805
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:38.428 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8fb3a06d-af1a-4da9-a769-41edf3591805'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
568
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8fb3a06d-af1a-4da9-a769-41edf3591805'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:39.001 [print] https://service.pdok.nl/provincies/stiltegebieden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:39.002 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:39.002 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:39.003 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:39.003 [print] Beheer PDOK
57
* print operateson
0
04:51:39.003 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:39.004 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:39.005 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:39.005 [print] "true";"true"
76
* eval db.writeln('"8fb3a06d-af1a-4da9-a769-41edf3591805","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8fb3a06d-af1a-4da9-a769-41edf3591805","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8fb3a06d-af1a-4da9-a769-41edf3591805","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.407:82]
a0ad469d-be1b-4d38-b699-faf946666bcc
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:38.454 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a0ad469d-be1b-4d38-b699-faf946666bcc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
578
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a0ad469d-be1b-4d38-b699-faf946666bcc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:39.037 [print] https://service.pdok.nl/lv/bag/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:39.038 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:39.038 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:39.038 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:39.039 [print] Beheer PDOK
57
* print operateson
0
04:51:39.039 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:39.040 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:39.041 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:39.041 [print] "true";"true"
76
* eval db.writeln('"a0ad469d-be1b-4d38-b699-faf946666bcc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a0ad469d-be1b-4d38-b699-faf946666bcc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a0ad469d-be1b-4d38-b699-faf946666bcc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.408:82]
f5660ac6-8031-4acc-832c-1d1b82b062ba
ms: 595
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:38.499 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f5660ac6-8031-4acc-832c-1d1b82b062ba'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
583
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f5660ac6-8031-4acc-832c-1d1b82b062ba'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:39.088 [print] https://acc.gdngeoservices.nl/geoserver/download/aardwarmtepotentiekaart/aardwarmte.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:39.089 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:39.089 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:39.090 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:39.091 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:51:39.091 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=11a292bd-9022-4a9f-b1bf-02f5c89ad74a&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:39.092 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:39.093 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:39.094 [print] "true";"true"
76
* eval db.writeln('"f5660ac6-8031-4acc-832c-1d1b82b062ba","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f5660ac6-8031-4acc-832c-1d1b82b062ba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f5660ac6-8031-4acc-832c-1d1b82b062ba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.409:82]
9ad3f0c0-9e2c-4d44-a467-b57920aa512f
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:38.946 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9ad3f0c0-9e2c-4d44-a467-b57920aa512f'
0
27
And param elementsetname = 'full'
4
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
546
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ad3f0c0-9e2c-4d44-a467-b57920aa512f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:39.503 [print] https://service.pdok.nl/hwh/administratieve-eenheden/waterschapsgrenzen/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:39.503 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:39.504 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:39.504 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:39.505 [print] Beheer PDOK
57
* print operateson
0
04:51:39.505 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d4ec7e6-50ae-4c71-bd20-5b9211e2135f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:39.506 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:39.507 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:39.507 [print] "true";"true"
76
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.410:82]
5f0c583a-101e-45ea-b684-a056713cf811
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:39.008 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5f0c583a-101e-45ea-b684-a056713cf811'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5f0c583a-101e-45ea-b684-a056713cf811'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:39.561 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-baseline-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:39.561 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:39.562 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:39.562 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:39.563 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:39.563 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=1249746f-c2a6-4639-98f2-251676b3528e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:39.564 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:39.565 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:39.566 [print] "true";"true"
76
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.411:82]
15d2aa2a-1e55-4ca4-986b-0d12768675a1
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:39.043 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '15d2aa2a-1e55-4ca4-986b-0d12768675a1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '15d2aa2a-1e55-4ca4-986b-0d12768675a1'
0
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:39.607 [print] https://service.pdok.nl/provincies/natuurnetwerk-nederland/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:39.607 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:39.608 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:39.608 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:39.609 [print] Beheer PDOK
57
* print operateson
0
04:51:39.609 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c7d8d77b-8c47-4309-8c58-9b12b086407f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:39.610 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:39.611 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:39.612 [print] "true";"true"
76
* eval db.writeln('"15d2aa2a-1e55-4ca4-986b-0d12768675a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"15d2aa2a-1e55-4ca4-986b-0d12768675a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"15d2aa2a-1e55-4ca4-986b-0d12768675a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.412:82]
b4485d59-a945-4940-a2f5-3ce7de6a947b
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:39.096 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b4485d59-a945-4940-a2f5-3ce7de6a947b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4485d59-a945-4940-a2f5-3ce7de6a947b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:39.664 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:39.665 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:39.666 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:39.666 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:39.667 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:39.667 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:39.669 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:39.670 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:39.671 [print] "true";"true";"true"
76
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.413:82]
03c39474-aef9-4169-95da-9890af440b14
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:39.509 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '03c39474-aef9-4169-95da-9890af440b14'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '03c39474-aef9-4169-95da-9890af440b14'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:40.074 [print] https:\/\/data.rivm.nl\/geo\/inspire\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:40.075 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:40.075 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:40.075 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:40.076 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:40.076 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:40.077 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:40.078 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:40.078 [print] "true";"true"
76
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.414:82]
fa3ecd49-4571-4eb3-84f3-2865f42934b2
ms: 586
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:39.568 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fa3ecd49-4571-4eb3-84f3-2865f42934b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fa3ecd49-4571-4eb3-84f3-2865f42934b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
20
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:40.150 [print] https://acc.gdngeoservices.nl/geoserver/download/oliegas/hydrocarbons.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:40.150 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:40.151 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:40.151 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:40.152 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:51:40.152 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=b61a773c-ecad-4e60-93e9-0a4caac0b52f&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:40.153 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:40.154 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:40.154 [print] "true";"true"
76
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.415:82]
73286af2-d0f4-4a62-9455-86ffa45ef279
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:39.614 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '73286af2-d0f4-4a62-9455-86ffa45ef279'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
546
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '73286af2-d0f4-4a62-9455-86ffa45ef279'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:40.167 [print] https://acc.gdngeoservices.nl/geoserver/download/zout/salt.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:40.168 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:40.169 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:40.170 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:40.170 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:51:40.171 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=e3b0da1e-0664-4025-b3f5-a54d74a26450&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:40.172 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:40.173 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:40.174 [print] "true";"true"
76
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.416:82]
f38ea40d-9029-465c-9db2-c8a3099e21a2
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:39.673 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f38ea40d-9029-465c-9db2-c8a3099e21a2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f38ea40d-9029-465c-9db2-c8a3099e21a2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:40.229 [print] https://service.pdok.nl/provincies/wet-ammoniak-veehouderij-gebieden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:40.229 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:40.230 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:40.231 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:40.231 [print] Beheer PDOK
57
* print operateson
0
04:51:40.232 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:40.233 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:40.234 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:40.235 [print] "true";"true"
76
* eval db.writeln('"f38ea40d-9029-465c-9db2-c8a3099e21a2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f38ea40d-9029-465c-9db2-c8a3099e21a2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f38ea40d-9029-465c-9db2-c8a3099e21a2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.417:82]
181b54ed-14d2-4fda-bae7-747972340f2f
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:40.081 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '181b54ed-14d2-4fda-bae7-747972340f2f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '181b54ed-14d2-4fda-bae7-747972340f2f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:40.640 [print] https://service.pdok.nl/provincies/provinciale-monumenten/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:40.641 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:40.642 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:40.642 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:40.643 [print] Beheer PDOK
57
* print operateson
0
04:51:40.643 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ca94a0cb-7561-4a10-a7d6-b840e56c33ff#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:40.645 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:40.645 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:40.646 [print] "true";"true"
76
* eval db.writeln('"181b54ed-14d2-4fda-bae7-747972340f2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"181b54ed-14d2-4fda-bae7-747972340f2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"181b54ed-14d2-4fda-bae7-747972340f2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.418:82]
77971fa3-f869-4726-969a-482e0b1a8c5d
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:40.157 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '77971fa3-f869-4726-969a-482e0b1a8c5d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '77971fa3-f869-4726-969a-482e0b1a8c5d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:40.721 [print] https://acc.gdngeoservices.nl/geoserver/download/geologicalmap/geologicalmap.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:40.721 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:40.722 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:40.722 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:40.723 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:51:40.723 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:40.724 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:40.724 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:40.725 [print] "true";"true"
76
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.419:82]
ef2a7962-8bb4-483f-ac78-851b619f357f
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:40.176 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ef2a7962-8bb4-483f-ac78-851b619f357f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
576
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ef2a7962-8bb4-483f-ac78-851b619f357f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:40.759 [print] https://services.rce.geovoorziening.nl/www/download/nl.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:40.760 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:40.761 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:40.761 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:40.762 [print] Rijksdienst voor het Cultureel Erfgoed
57
* print operateson
0
04:51:40.762 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6f84efeb-fc1d-4565-a721-80735ea57dbd#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=4e2ef670-cddd-11dd-ad8b-0800200c9a66#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=88a3c1ae-902e-4efa-8663-ddd836101929#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:40.764 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:40.765 [print] "Nadere uitleg bij het al dan niet volledig voldoen aan de specificatie";"Open Search mechanisme van het Nationaal Georegister functioneert nog niet naar behoren."
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:40.766 [print] "true";"false"
76
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.420:82]
01572637-b851-4cc3-b06a-56c1ae1115cc
ms: 544
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:40.238 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '01572637-b851-4cc3-b06a-56c1ae1115cc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
534
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '01572637-b851-4cc3-b06a-56c1ae1115cc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:40.778 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:40.779 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:40.779 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:40.779 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:40.780 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:40.780 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:40.781 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:40.782 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:40.782 [print] "false";"false"
76
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.421:82]
0606e8cb-fa51-402c-a3be-19fd724b0a10
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:40.649 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0606e8cb-fa51-402c-a3be-19fd724b0a10'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0606e8cb-fa51-402c-a3be-19fd724b0a10'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:41.215 [print] https:\/\/data.rivm.nl\/geo\/inspire\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:41.216 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:41.216 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:41.217 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:41.217 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:41.217 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:41.218 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:41.219 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:41.220 [print] "true";"true"
76
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.422:82]
15c3c30f-0db2-4b3b-80f6-b990c8fc8225
ms: 623
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:40.727 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '15c3c30f-0db2-4b3b-80f6-b990c8fc8225'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
612
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '15c3c30f-0db2-4b3b-80f6-b990c8fc8225'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:41.346 [print] https://service.pdok.nl/hwh/hydrografie/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:41.347 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:41.347 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:41.347 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:41.348 [print] Beheer PDOK
57
* print operateson
0
04:51:41.348 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07575774-57a1-4419-bab4-6c88fdeb02b2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:41.349 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:41.350 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:41.350 [print] "true";"true"
76
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.423:82]
ff8f6da2-949e-4838-90f6-fd895a4a240f
ms: 614
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:40.768 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ff8f6da2-949e-4838-90f6-fd895a4a240f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
601
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ff8f6da2-949e-4838-90f6-fd895a4a240f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:41.376 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:41.376 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:41.377 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:41.377 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:41.377 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:41.377 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:41.379 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:41.379 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:41.382 [print] "true";"true";"true"
76
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.424:82]
3ac5737f-55ed-455d-8350-44af11b67fc3
ms: 627
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:40.784 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3ac5737f-55ed-455d-8350-44af11b67fc3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
614
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3ac5737f-55ed-455d-8350-44af11b67fc3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:41.405 [print] https://service.pdok.nl/cbs/wijkenbuurten/2019/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:41.406 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:41.407 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:41.407 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:41.408 [print] Beheer PDOK
57
* print operateson
0
04:51:41.408 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:41.409 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:41.410 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:41.411 [print] "true";"true"
76
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.425:82]
f8b4a0b9-9687-435e-a271-c8403dec630e
ms: 603
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:41.222 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f8b4a0b9-9687-435e-a271-c8403dec630e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
594
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f8b4a0b9-9687-435e-a271-c8403dec630e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:41.822 [print] https://service.pdok.nl/rvo/habitatrichtlijnsoorten/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:41.822 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:41.822 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:41.823 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:41.823 [print] Beheer PDOK
57
* print operateson
0
04:51:41.823 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=28c4780a-1a44-4376-b283-14a50a481729#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:41.824 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:41.825 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:41.825 [print] "true";"true"
76
* eval db.writeln('"f8b4a0b9-9687-435e-a271-c8403dec630e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f8b4a0b9-9687-435e-a271-c8403dec630e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f8b4a0b9-9687-435e-a271-c8403dec630e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.426:82]
9f051605-bac9-4486-908d-9ada36c7b16e
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:41.353 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9f051605-bac9-4486-908d-9ada36c7b16e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9f051605-bac9-4486-908d-9ada36c7b16e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:41.912 [print] https://service.pdok.nl/cbs/landuse/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:41.912 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:41.913 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:41.913 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:41.913 [print] Beheer PDOK
57
* print operateson
0
04:51:41.914 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6318009c-7b11-4ab9-9929-735584dfb692#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:41.915 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:41.915 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de interoperable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:41.916 [print] "true";"true";"true"
76
* eval db.writeln('"9f051605-bac9-4486-908d-9ada36c7b16e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9f051605-bac9-4486-908d-9ada36c7b16e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9f051605-bac9-4486-908d-9ada36c7b16e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.427:82]
c0bef00c-e00c-4004-93c6-7bb8df62ec38
ms: 575
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:41.384 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c0bef00c-e00c-4004-93c6-7bb8df62ec38'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c0bef00c-e00c-4004-93c6-7bb8df62ec38'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:41.952 [print] https://service.pdok.nl/cbs/landuse/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:41.952 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:41.953 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:41.953 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:41.953 [print] Beheer PDOK
57
* print operateson
0
04:51:41.953 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6318009c-7b11-4ab9-9929-735584dfb692#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:41.954 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:41.955 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:41.956 [print] "true";"true"
76
* eval db.writeln('"c0bef00c-e00c-4004-93c6-7bb8df62ec38","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c0bef00c-e00c-4004-93c6-7bb8df62ec38","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c0bef00c-e00c-4004-93c6-7bb8df62ec38","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
3
Scenario: [1.428:82]
dd414384-0bcb-4188-86e2-2843e12a579e
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:41.413 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dd414384-0bcb-4188-86e2-2843e12a579e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
574
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dd414384-0bcb-4188-86e2-2843e12a579e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:41.994 [print] https://www.broinspireservices.nl/wfs/ossosgm-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:41.995 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:41.995 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:41.996 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:41.997 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:51:41.997 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=a7fb2234-f7b4-4a03-b282-f10947f42fb1&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:41.998 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:41.999 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:42.000 [print] "true";"true"
76
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.429:82]
9d983730-e750-485a-9c0c-39bf9bt72cf8
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:41.828 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9d983730-e750-485a-9c0c-39bf9bt72cf8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d983730-e750-485a-9c0c-39bf9bt72cf8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
20
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:42.403 [print] https://downloads.rijkswaterstaatdata.nl/bodemhoogte_5mtr_atom_index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:42.404 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:42.405 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:42.405 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:42.406 [print] Rijkswaterstaat
57
* print operateson
0
04:51:42.406 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:42.408 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:42.409 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:42.409 [print] "true";"true"
76
* eval db.writeln('"9d983730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9d983730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9d983730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.430:82]
deb81ebe-c7a7-42ba-bc21-f07cd348c3e8
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:41.918 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'deb81ebe-c7a7-42ba-bc21-f07cd348c3e8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
555
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'deb81ebe-c7a7-42ba-bc21-f07cd348c3e8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:42.480 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw-inspire?request=GetCapabilities&Service=CSW&Version=2.0.1
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:42.480 [print] OGC:CSW
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:42.481 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:42.481 [print] OGC:CSW
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:42.482 [print] Beheer PDOK
57
* print operateson
0
04:51:42.482 [print] #notpresent
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:42.483 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-discovery-services-0"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:42.484 [print] "Deze service is conform INSPIRE richtlijn betreffende diensten met betrekking tot ruimtelijke gegevens";"Deze service is conform de Technical Guidance for INSPIRE Discovery Services"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
5
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:42.489 [print] "true";"true"
76
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.431:82]
b6d902f4-97e8-4bcc-ba87-e58134645ab7
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:41.961 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b6d902f4-97e8-4bcc-ba87-e58134645ab7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b6d902f4-97e8-4bcc-ba87-e58134645ab7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:42.516 [print] https:\/\/inspire.caris.nl\/gs4\/LAT2018OF\/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:42.517 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:42.517 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:42.517 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:51:42.518 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:42.518 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=be6551de-a709-4c6d-a5e2-f63f0cf038ba&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:42.519 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:42.520 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:42.521 [print] "true";"true"
76
* eval db.writeln('"b6d902f4-97e8-4bcc-ba87-e58134645ab7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b6d902f4-97e8-4bcc-ba87-e58134645ab7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b6d902f4-97e8-4bcc-ba87-e58134645ab7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.432:82]
c4e7ab54-da5c-46ea-a5b5-53df01873240
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:42.002 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c4e7ab54-da5c-46ea-a5b5-53df01873240'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
566
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c4e7ab54-da5c-46ea-a5b5-53df01873240'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:42.575 [print] https://haleconnect.com/ows/services/org.292.c3955762-73a3-4c16-a15c-f3869487a1e3_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:42.575 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:42.576 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:42.576 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:42.577 [print] Rijkswaterstaat
57
* print operateson
0
04:51:42.577 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c3955762-73a3-4c16-a15c-f3869487a1ea#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:42.578 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:42.579 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:42.579 [print] "true";"true"
76
* eval db.writeln('"c4e7ab54-da5c-46ea-a5b5-53df01873240","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c4e7ab54-da5c-46ea-a5b5-53df01873240","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c4e7ab54-da5c-46ea-a5b5-53df01873240","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.433:82]
62b01550-9007-4634-b008-bd6071b34b2c
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:42.412 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '62b01550-9007-4634-b008-bd6071b34b2c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '62b01550-9007-4634-b008-bd6071b34b2c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:42.962 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.1d098355-23c3-4bd3-adf6-192549933ec3?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:42.963 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:42.964 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:42.964 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:42.965 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:42.965 [print] https://haleconnect.com/services/bsp/org.874.1d098355-23c3-4bd3-adf6-192549933ec3/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:42.967 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:42.968 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:42.969 [print] true
76
* eval db.writeln('"62b01550-9007-4634-b008-bd6071b34b2c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"62b01550-9007-4634-b008-bd6071b34b2c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"62b01550-9007-4634-b008-bd6071b34b2c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.434:82]
bc0b75c6-3eef-49de-aca2-8483024903c1
ms: 618
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:42.492 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bc0b75c6-3eef-49de-aca2-8483024903c1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
606
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bc0b75c6-3eef-49de-aca2-8483024903c1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:43.106 [print] https://service.pdok.nl/rvo/beschermdegebieden/wetlands/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:43.107 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:43.107 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:43.107 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:43.108 [print] Beheer PDOK
57
* print operateson
0
04:51:43.108 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=19165027-a13a-4c19-9013-ec1fd191019d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:43.109 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:43.110 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de interoperable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:43.111 [print] "true";"true";"true"
76
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.435:82]
1492fa63-96e2-406d-9a27-6affe281d848
ms: 602
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:42.523 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1492fa63-96e2-406d-9a27-6affe281d848'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
591
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1492fa63-96e2-406d-9a27-6affe281d848'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:43.120 [print] https://inspire.caris.nl/geoserver/tz/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:43.121 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:43.121 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:43.121 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:43.122 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:43.122 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7fed469a-77e1-4545-a4cb-eedf389d851f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:43.123 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:43.124 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:43.125 [print] "true";"true"
76
* eval db.writeln('"1492fa63-96e2-406d-9a27-6affe281d848","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1492fa63-96e2-406d-9a27-6affe281d848","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1492fa63-96e2-406d-9a27-6affe281d848","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.436:82]
f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8
ms: 583
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:42.582 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
572
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
0
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:43.160 [print] https://service.pdok.nl/rws/nwbwegen/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:43.160 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:43.161 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:43.161 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:43.162 [print] Beheer PDOK
57
* print operateson
0
04:51:43.162 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a9b7026e-0a81-4813-93bd-ba49e6f28502#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a9b7026e-0a81-4813-93bd-ba49e6f28502#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:43.164 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:43.164 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:43.165 [print] "true";"true"
76
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.437:82]
2bd75565-db8b-4df7-a3a6-0e9ca5289e5e
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:42.971 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2bd75565-db8b-4df7-a3a6-0e9ca5289e5e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2bd75565-db8b-4df7-a3a6-0e9ca5289e5e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:43.525 [print] https://haleconnect.com/ows/services/org.292.2350b86b-3efd-47e4-883e-519bfa8d0aba_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:51:43.525 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:43.526 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:43.526 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:43.526 [print] Rijkswaterstaat
57
* print operateson
0
04:51:43.526 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2350b86b-3efd-47e4-883e-519bfa8d0abd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:43.528 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:43.528 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:43.529 [print] "true";"true"
76
* eval db.writeln('"2bd75565-db8b-4df7-a3a6-0e9ca5289e5e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2bd75565-db8b-4df7-a3a6-0e9ca5289e5e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2bd75565-db8b-4df7-a3a6-0e9ca5289e5e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0